Navicat远程连接MySQL问题10061

[1]打开my.cnf
vi /etc/mysql/my.cnf
[2]修改 bind-address = 127.0.0.1 为 bind-address = 0.0.0.0
[3]重启服务
/etc/init.d/mysql restart
[4]进入mysql
mysql -u root -p
[5]输入指令,开放ip访问
use mysql;
update user set host = "%" where host = '127.0.0.1';
flush privileges;

你可能感兴趣的:(Navicat远程连接MySQL问题10061)