在线做炫图网站,企业网站建设预算,vscode创建网页,微信小程序用什么开发最近在服务器上部署好的应用突然间连接不上mysql数据库#xff0c;报错“ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server” 那么直接运行如下命令#xff1a; mysql -u root -p 弹出Enter password:输入您的数据库密码 链接到mysql数据库…最近在服务器上部署好的应用突然间连接不上mysql数据库报错“ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server” 那么直接运行如下命令 mysql -u root -p 弹出Enter password:输入您的数据库密码 链接到mysql数据库。 假如你的用户是root ,那么运行如下命令 GRANT ALL PRIVILEGES ON *.* TO root% IDENTIFIED BY 您的数据库密码 WITH GRANT OPTION; 然后刷新一下权限 flush privileges; 大功告成就可以在客户端连接mysql服务器了。转载于:https://www.cnblogs.com/ianduin/p/8267092.html