1.mysql数据库设置远程连接权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;【回车】
2.刷新MySQL的系统权限
flush privileges;【回车】
3.停止防火墙
service iptables stop
--------------------------------------------
[ERROR]: 1146 - Table 'performance_schema.session_status' doesn't exist 解决办法
输入命令:mysql_upgrade -u root -p --force 输入密码
重启mysql服务