mysql忘记root用户密码重置密码的方式时间:2023-03-09 19:53:01 解决方法如下: 让mysql不载入权限表,命令:mysqld --skip-grant-tables(windows)、mysqld_safe --skip-grant-tables user=mysql或者 /etc/init.d/mysql start --mysqld --skip-grant-tables (linux) 打开另外一个命令窗口,进入mysql的交互界面,密码随便输入。 用update语句设置密码(此时不能用set password语句)。 验证密码修改是否成功 来源: http://zhidao.baidu.com/link?url=0wnwsXf5o-8pU1aGVrj96ibtPrDIdHNeniiMw3GgGEzldj3LFjVxiLTlh_Z7vJJ-W9Z5CY3Z80hLssH2i7KBhK 来自为知笔记(Wiz)