简单图解设置MYSQL可以通过其他机器远程访问,开启远程访问权限

开始,运行---cmd,然后cd到mysql.exe目录,然后照着下图红色框中输入

注意:

1.MySQL 5.7查询时候应该输入select host,user,authentication_string from user;  或者直接  select * from user查看所有;

2.这句:grant all privileges on *.* to 'root'@'%' identified by "远程访问的密码"

接着可以用SQLyog等工具在别的机器链接试试

原文地址:https://www.cnblogs.com/xiii/p/4890885.html