连接mysql报"ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server"
最近在服务器上部署好的应用突然间连接不上mysql数据库,报错“ERROR1130:Hostxxx.xxx.xxx.xxxisnotallowedtoconnecttothisMySQLserver”那么直接运行如下命令:mysql-uroot-p弹出Enterpassword:输入您的数据库密码链接到mysql数据库。假如你的用户是root,那么运行如下命令:GRANTALLPRIVILEGES