1. 服务器规则添加 3306端口
2. mysql localhost 改为%
mysql> select user, host from mysql.user;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;