允许 root 用户远程连接 mysql 数据库
进入 mysql 库,输入下面的命令:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; # 123456 是 root 的登陆密码
flush privileges;
查看结果:
SELECT user, host, password from user;

参考:
https://www.cnblogs.com/linjiqin/p/5270938.html
https://www.cnblogs.com/gdsblog/p/7349551.html
1532

被折叠的 条评论
为什么被折叠?



