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-5.6.20的编译安装


下一篇:MySQL数据库的基本操作