安全地更新 mysql root password

1. mysql

2. update mysql.user set Password=PASSWORD(‘<root_password>’) where User=’root’ and Hostname='<host>’;

3. flush privileges;

4. quit;

Please leave your comment on the topic

This site uses Akismet to reduce spam. Learn how your comment data is processed.