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-10-26 19:52:12
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