常见问题 |
云服务器windows2003下重置MySQL暗码
2014-10-06 20:05
1.起首正在_86068.comC盘我们建立一个txt文档将其重命名为"mysql-init.txt",文档内容我们输入
update mysql.user set password=password('newpasswd') where user='root';
flush privileges; 注:个中 newpasswd 能够变动为您需求重置的Mysql暗码
然后进入Mysql安装目次下的bin目次,以下图片为Mysql安装目次正在C:\Mysql\mysql Server5.1\bin
3.输入下令mysqld --init-file=C:\\mysql-init.txt 回车
4.暗码重置胜利,再次正在CMD命令行中输入 net start mysql 启动数据库效劳 |