环境:win10
容器:docker
mysql版本:5.7
$con = mysqli_connect("127.0.0.1","root","root");
var_dump(mysqli_connect_error());
打印报错结果:string(18) "Connection refused"
$con2 = mysqli_connect("localhost","root","root");
var_dump(mysqli_connect_error());
打印报错结果:string(25) "No such file or directory"
小唯快跑啊