mysql用户修改密码

mysqladmin -utest -ptest password 'test1';
set password for 'test'@'localhost' = password('test');
grant usage on *.* to 'test'@'localhost' identified by 'test1';(必须有权限)
update user set password =password('test') where host='localhost' and user='test';
flush privileges;

猜你喜欢

转载自skywhsq1987.iteye.com/blog/1665702