Resetting your MySQL database password

Wednesday, August 27, 2014 FingerTec 12 Comments

There may be instances in which you may not remember your password and this leaves you without the ability to access into your MySQL database. Now, you don’t need to worry about forgetting your password as we now offer you the option to reset and create a new password. Here are the steps that on how you can do so :

1.      Suspend the MySQL service under Windows Service.

Go into Control Panel > Select to view Small icon > Select Administrative Tools

Select Services

Select MySQL > Right click > Select Stop

2.   Next, create a TXT file with the content below

UPDATE mysql.user SET Password=PASSWORD('root') WHERE User='root';


            You can insert your new password to replace the root.
            Save the file into C drive with name MYSQL.txt

     3.    Run COMMAND PROMPT by using your administrator privilege

4.      Now, type the command below:

C:\>"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld.exe" --defaults-file="C:\Program Files\\MySQL\\MySQL Server 5.5\\my.ini" --init-file=C:\\MYSQL.txt

In case you install MySQL into Program Files (x86) folder, please make sure that you change the command as below:

C:\>"C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysqld.exe" --defaults-file="C:\Program Files (x86)\\MySQL\\MySQL Server 5.5\\my.ini" --init-file=C:\\MYSQL.txt

5.      Go into Control Panel > Select Small icon view > Select Administrative Tools > Services > MySQL > Right click mouse to select Start service.


  1. . This site is a great site for the information.Excellent article. The good points mentioned in this article
    پارتیشن اداری
    لیزینگ خودرو
    ملک در ترکیه
    نمای ساختمان

  2. You have information on this site is very useful for users. You are an accomplished writer

  3. نورگیر


Have any questions or inquiries about FingerTec? Drop your input here.