怎样设置 MySQL 远程连接

允许用户 root 任何IP 上都可以远程连接 所有 mysql数据库 并具有操作数据库的 所有权限, 密码为: myPassword

mysql -u root -p

grant all PRIVILEGES on *.* to root@'%' identified by 'myPassword';

flush privileges;
原文地址:https://www.cnblogs.com/aisowe/p/11452219.html