步骤:
1. 关闭mysql服务 2. mysqld --skip-grant-tables; 3. 新cmd,执行mysql 4. use mysql; 5. update mysql.user authentication_string=password(‘123456‘) where user=‘root‘ and host=‘localhost‘; // set password=password(‘123456‘)在跳过权限下无效 6. flush privileges;
原文地址:https://www.cnblogs.com/maoriaty/p/9337870.html
时间: 2024-10-31 08:05:51