在windows下忘记mysql密码解决办法
1.打开命令行窗口,停止mysql服务: net stop mysql
2.到mysql的安装路径,找到 mysqld-nt.exe
执行:mysqld-nt --skip-grant-tables
cmd-> cdC:Program FilesMySQLMySQL Server 5.0bin
C:Program FilesMySQLMySQL Server 5.0bin>mysqld-nt -- skip-grant-tables
3.另外打开一个命令行窗口,执行mysql
>use mysql
>update user set password=password(\"new_pass\") where user=\"root\";
>flush privileges;
>exit
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13830/showart_2111915.html
页:
[1]