忘了mysql的root密码
2023/10
21
21:10
在my.ini 或者 myc.cnf的[mysqld]中添加:
skip-grant-tables
然后可以直接登录
mysql -uroot -p
如果修改root密码报错
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
则执行
flush privileges;
set password for root@localhost=password('你的密码');
--------------------------
其它
如果忘记wordpress密码,则查看wp-config.php文件
或者删除wp-config.php
wordpress修改管理员密码
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: 忘了mysql的root密码
Post Link: 忘了mysql的root密码