- Stop my sql server
- Open Command Prompt
- Execute the following command in the command prompt
- Leave the current command prompt as it is, and open a command prompt window.
- Execute the following command in the command prompt in the second command prompt.
- Execute the following command to update the password in the sql command windows.
- After you are finished close the first command prompt and type "exit;" in the second command prompt windows to disconnect successfully. You can now start the MySQL service.
Start Menu -> Control Panel -> Administrative Tools -> Services
Find mysql, right click and select stop
Run -> type "cmd"
cd C:\Program Files\MySQL\MySQL Server 5.0\bin
mysqld-nt.exe -u root --skip-grant-tables
cd C:\Program Files\MySQL\MySQL Server 5.0\bin
mysql
You should have this C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.67-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
UPDATE user SET Password = PASSWORD('NEW_PASSWORD') WHERE User = 'root';
Where 'NEW_PASSWORD' will be your new ROOT password
*Note for Haslyn : Sorry, I just forgot mysql pass in your PC, so i write this for u.*
No comments:
Post a Comment