时间:2021-07-01 10:21:17 帮助过:26人阅读
service mysqld stop /opt/mysql/bin/mysqld_safe --skip-grant-tables & /opt/mysql/bin/mysql -u root update mysql.user set password=PASSWORD('...') where User='root' and host='localhost'; flush privileges;service mysql stopservice mysqld start