请先安装好数据库再来这里,像这样的界面

最重要的两步
第一步:在服务器上打开3306端口

第二步:给MySQL设置一个能在任意IP地址登录的用户(这里用的root)
mysql>use mysql;
修改host为%
mysql>update user set host='%' where user='root';
退出mysql
mysql>quit;
重启mysql
systemctl restart mysqld


mysql>use mysql;
修改host为%
mysql>update user set host='%' where user='root';
退出mysql
mysql>quit;
重启mysql
systemctl restart mysqld
本文标题:linux8 使用SQLyog远程连接MySQL数据库
本文链接:https://www.haomeiwen.com/subject/kvrrfktx.html
网友评论