1、如果你还没有安装mysql,请先看看这篇安装mysql
https://www.jianshu.com/p/0b55f6a9cdd0
2、安装完毕mysql后,开启远程访问
#先登录
mysql -u root -p
#然后依次输入下面命令
use mysql;
#使root能再任何host访问
update user set host = '%' where user = 'root';
#刷新
FLUSH PRIVILEGES;
1、如果你还没有安装mysql,请先看看这篇安装mysql
https://www.jianshu.com/p/0b55f6a9cdd0
2、安装完毕mysql后,开启远程访问
#先登录
mysql -u root -p
#然后依次输入下面命令
use mysql;
#使root能再任何host访问
update user set host = '%' where user = 'root';
#刷新
FLUSH PRIVILEGES;
本文标题:linux mysql5.7开启远程访问
本文链接:https://www.haomeiwen.com/subject/yijatktx.html
网友评论