使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'
报错:1045 - Access denied for user 'root'@'10.10.1.35'(using password: YES)错误。
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