mysql5.7开启远程访问权限

时间:2020-05-01
use mysql;
update user set host = '%' where user = 'root'; (使mysql root用户可以连接上任意的ip地址)
FLUSH PRIVILEGES