方法一:mysql> set password for 用户名@localhost = password('新密码');
方法二:mysqladmin -u用户名 -p旧密码 password 新密码
方法三: update user set password=password('123') where user='root' ;
方法四:update user set authentication_string=password("1122") where user="root";
方法一:mysql> set password for 用户名@localhost = password('新密码');
方法二:mysqladmin -u用户名 -p旧密码 password 新密码
方法三: update user set password=password('123') where user='root' ;
方法四:update user set authentication_string=password("1122") where user="root";