学习期间,小组要做一个小项目测试一下。

我电脑上面的数据库作为远程数据库,组员连接时  就出现了这个1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server

解决方法:

进入mysql控制台:

执行命令1----->GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '您的数据库密码' WITH GRANT OPTION;

执行命令2----->flush privileges;

ok ,再让其他成员连接试一下。

我的是OK的。

 

Logo

更多推荐