Can't connect to MySQL server on 'localhost' (10061)

解决方案

 
1、host文件(host文件在C:\WINDOWS\system32\drivers\etc目录下)中添加
  127.0.0.1       localhost
 
2、打开my.ini,在[mysqld]添加
  bind-address = 127.0.0.1
 
3、重启mysql
posted @ 2017-05-25 21:32  偶然相遇  阅读(146)  评论(0编辑  收藏  举报