1.打开文件夹 C:\Program Files (x86)\MySQL\MySQL Server 5.1 2.找到my.ini 在在[mysqld]添加 bind-address = 127.0.0.1 3.保存 my.ini修改 重启mysql