标签:
1.允许本地所有数据库权限
grant all privileges on *.* to root@localhost identified by "XXX" ;
grant all privileges on *.* to root@"%" identified by "XXX" ;
2.设置用户访问数据库权限
grant all privileges on 数据库.* to root@localhost identified by "XXX" ;
grant all privileges on 数据库.* to root@"%" identified by "XXX" ;
标签:
原文地址:http://www.cnblogs.com/yasmi/p/5179913.html