mysql忘记密码:
在配置文件中添加: skip-grant-tables
service mysqld restart
mysql
use mysql;
update user set password=PASSWORD(‘123456‘) where user=‘root‘;
flush privileges;
在配置文件中删除掉: skip-grant-tables
service mysqld restart
时间: 2024-12-29 11:55:18
mysql忘记密码:
在配置文件中添加: skip-grant-tables
service mysqld restart
mysql
use mysql;
update user set password=PASSWORD(‘123456‘) where user=‘root‘;
flush privileges;
在配置文件中删除掉: skip-grant-tables
service mysqld restart