码迷,mamicode.com
首页 > 数据库 > 详细

死磕mysql(5)

时间:2015-03-19 23:31:25      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

高性能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

详细的权限

 

死磕mysql(5)

标签:

原文地址:http://www.cnblogs.com/ututuut/p/4346765.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!