navicat 忘了用户密码

来源:百度知道 编辑:UC知道 时间:2024/05/18 05:24:43

1.以系统管理员身份登陆系统。

2.打开cmd-----net start 查看mysql是否启动。启动的话就停止net stop mysql.

3.我的mysql安装在d:\usr\local\mysql4\bin下。

4.跳过权限检查启动mysql.

d:\usr\local\mysql4\bin\mysqld-nt --skip-grant-tables

5.重新打开cmd。进到d:\usr\local\mysql4\bin下:

d:\usr\local\mysql4\bin\mysqladmin -uroot flush-privileges password "newpassword"

d:\usr\local\mysql4\bin\mysqladmin -u root -p shutdown 这句提示你重新输密码。

6.在cmd里net start mysql

7.搞定了。
see to:http://publish.it168.com/2006/0310/20060310026401.shtml?positioncode=1547