navicat连接远程mysql失败

使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

解决办法:https://www.cnblogs.com/feixiablog/p/9633901.html

报错:1045 - Access denied for user 'root'@'10.10.1.35'(using password: YES)错误。

解决办法:https://jingyan.baidu.com/article/f7ff0bfcb914916e26bb13ac.html

navicat 设置连接远程数据库问题解决:

注明:123456 是你授权root用户登录时的密码

grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;

flush privileges;

注意上述操作完成之后需要重启mysql服务,重启命令:

重启
1、使用 service 启动:
service mysqld restart 
service mysql restart (5.5.7版本命令)

2、使用 mysqld 脚本启动:
/etc/init.d/mysqld restart

原文地址:https://www.cnblogs.com/huaibin/p/12736221.html