「MySQL」- 修改用户密码

  CREATED BY JENKINSBOT

在 MySQL 5.7.5 之前

SET PASSWORD FOR 'user-name-here'@'hostname' = PASSWORD('new-password');

在 MySQL 5.7.5 之后

ALTER USER 'user'@'hostname' IDENTIFIED BY 'newPass';

参考文献

MySQL Change a User Password