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