MYSQL 远程访问被限制

C#远程访问MYSQL出现:access denied for user 'root'@'%' to database xxxx的提示。

解决方法,执行授权:
mysql>grant all PRIVILEGES on xxxx.* to root@'%'  identified by 'password' with grant option;

mysql>flush privileges;
xxxx为创建的数据库,password为root的密码。请按实际要求进行更改。

posted @ 2013-05-28 10:46  Ratooner  阅读(196)  评论(0编辑  收藏  举报