登录MySQL过后检查用户设置命令
use mysql
select host,user from user;
navicat远程连接mysql
错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server 是无法给远程连接的用户权限问题
1.执行下登陆命令
mysql -u root -p
弹出Enter password:输入您的数据库密码
mysql -u root -p
弹出Enter password:输入您的数据库密码
Sql代码
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1' WITH GRANT OPTION; -------------this is avaliable
flush privileges;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
二、11601,10061错误解决方法