您的位置:首页 > 数据库 > MySQL

mysql操作

2016-02-03 16:06 513 查看
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" ;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: