怎样设置 MySQL 远程连接

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

mysql -u root -p

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

flush privileges;

 

posted on 2019-09-03 12:04  aisowe  阅读(2256)  评论(0)    收藏  举报

导航