1130 - Host ‘17216.18083‘ is not allowed to connect to this MySQL server

mysql5.7 设置root远程登录

 1、登录数据库 

mysql -u root -p

2、设置root 用户允许远程登录,"your password" 是自己设置的密码;

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your password' WITH GRANT OPTION;

3、刷新权限

FLUSH PRIVILEGES;

4、重新远程登录测试 

你可能感兴趣的:(mysql)