修改mysql的用户密码,分别使用grant、alter、set修改
①mysql> grant all on *.* to '用户名'@'登录主机' identified by '密码';
②mysql> alter user '用户名'@'登录主机' identified by '密码(自定义)';
③mysql> SET PASSWORD FOR '用户名'@'登录主机' = PASSWORD('密码');
grant all on *.* to 'test_1'@'localhost' identified by '123456';
SET PASSWORD FOR 'test_1'@'localhost' = PASSWORD('123456789');
alter user 'test_1'@'localhost' identified by '123456';