mysql> alter user '用户名'@'登录主机' identified by '密码(自定义)';
例如:mysql> alter user 'root'@'localhost' identified by 'xiaowei222';
mysql> alter user '用户名'@'登录主机' identified by '密码(自定义)';
例如:mysql> alter user 'root'@'localhost' identified by 'xiaowei222';