标签: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
原文地址:http://richchen1979.blog.51cto.com/8779901/1557119