配置 mysql 允许远程连接

允许 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

猜你喜欢

转载自blog.csdn.net/beguile/article/details/88797876
今日推荐