Windows下修改MySQL密碼

一、在配置文件mysql.ini的後面添加一行:

?html

1
skip- grant -tables

二、重啓mysql服務。

三、修改密碼。

C:\Users\Administrator>cd C:\Program Files\MySQL\MySQL Server 5.5\binmysql

C:\Program Files\MySQL\MySQL Server 5.5\bin>mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.35 MySQL Community Server (GPL)sql

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.spa

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.code

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.htm

mysql>ip

四、刪除剛纔在mysql.ini上面增長的那一行。

五、重啓mysql服務。

相關文章
相關標籤/搜索