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

mysql用户

时间:2014-09-23 03:04:14      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:mysql

update mysql.user set Password = PASSWORD(‘密码‘) where User = ‘root‘;

flush privileges;

select password(‘密码‘);

create user ‘用户名‘@‘主机名‘ identified by ‘密码‘

grant all on *.* to ‘用户名‘@‘主机名‘;

grant select,insert on *.* to ‘用户名‘@‘主机名‘;

grant all on db.* to ‘用户名‘@‘主机名‘;

grant select,insert on db.* to ‘用户名‘@‘主机名‘;


mysql用户

标签:mysql

原文地址:http://richchen1979.blog.51cto.com/8779901/1557119

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