错误的原因是root用户在远程连接的MYSQL上面,没有这个新数据库的授权。在本地使用mysql应该不存在这个问题。
解决方法,执行授权:
grant all PRIVILEGES on xxxx.* to root@'%' identified by 'password' with grant option;
xxxx为创建的数据库,password为root的密码。请按实际要求进行更改。
该命令详细的使用方法,请参考host xxx is not allowed to connect to this MySQL
转载自 http://www.wodernet.com/4/403/20130317/579.html
641



被折叠的 条评论
为什么被折叠?



