Can't connect to MySQL server on 'localhost' (10061) 解决方案 1、host文件(host文件在C:WINDOWSsystem32driversetc目录下)中添加 127.0.0.1 localhost 2、打开my.ini,在[mysqld]添加 bind-address = 127.0.0.1 3、重启mysql