Change root MySQL password in Windows/Plesk

This article covers how to change root mysql password in Windows/Plesk.

Step 1.  Go to C:\Program Files\Parallels\Plesk\Databases\MySQL\Data\my.ini  and add the following line at the top:

skip-grant-tables

(this will let you access MySQL with no password)

 

Step 2.  Restart MySQL

 

Step 3.  Open CMD and change to the directory   C:\Program Files\Parallels\Plesk\Databases\MySQL\bin\

 

Step 4. Go into the MySQL command utility, (notice you are not using a password):

mysql -u root mysql

 

Step 5. Change the password using these two  commands

mysql>  UPDATE mysql.user SET Password=PASSWORD(‘New_Pass_Word’) WHERE User=’root’;

mysql>   FLUSH PRIVILEGES;

(New_Pass_Word  is the new password you would like to use )

(if the root user doesn’t work when updating the password in Plesk try changing the user from ‘root’ to ‘admin’ in the command above)

 

Step 6. Restart mysql

 

Step 7. Go into Plesk and update the MySQL password to the changed

 

Step 8. Remove the line ‘skip-grant-tables’ from the my.ini file and restart mysql

Related Articles

회신을 남겨주세요

귀하의 의견을 입력하십시오!
여기에 이름을 입력하십시오.

Captcha verification failed!
보안문자 사용자 점수가 실패했습니다. 연락주세요!

Stay Connected

0같은
0추종자따라
22,800가입자가입
- Advertisement -spot_img

Latest Articles