标签:
高性能mysql
--查看隐藏的库//use mysql
--创建新用户//create user ‘new‘@‘localhost‘ identified by ‘‘;
--创建用户 ‘用户名‘@‘主机/*本地登陆*/‘ 密码‘密码‘
mysql> create user ‘new‘@‘localhost‘ identified by ‘‘;
Query OK, 0 rows affected (0.00 sec)
*************************** 6. row ***************************
Host: localhost
User: new
Password:
Select_priv: N
Insert_priv: N
Update_priv: N
Delete_priv: N
Create_priv: N
mysql> grant all on *.* to ‘new‘@‘localhost‘;
Query OK, 0 rows affected (0.03 sec)
--授予全部权限 对于每一个数据库 给‘new‘@‘loalhost‘
mysql> revoke select on *.* from ‘new‘@‘localhost‘;
Query OK, 0 rows affected (0.00 sec)
--修改权限给予查询权限
http://blog.csdn.net/wulantian/article/details/38230635
详细的权限
标签:
原文地址:http://www.cnblogs.com/ututuut/p/4346765.html