您的位置:首页 > 数据库 > MySQL

【排错】工具远程连接mysql,错误代码10061

2015-04-22 19:15 525 查看
错误如下
Can't connect to mysql on '192.168.1.124' (10061)

解决:
优先检查授权:

grant all privileges on *.* to 'root'@'%' identified by 'password'
flush privileges;
--%表示所有的ip可能

检查mysql配置文件(my.ini或者my.cnf):

bind-address = 127.0.0.1
改成 bind-address = 0.0.0.0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql 远程连接 10061