mysql操作

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" ;

posted @ 2016-02-03 16:06  雅思敏  阅读(127)  评论(0编辑  收藏  举报