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的密码。请按实际要求进行更改。

原文地址:https://www.cnblogs.com/ratooner/p/3103147.html