9/6/2005
Reset Root MySQL Password
1. Gracefully stop the MySQL server. On most Linux systems:
2. Restart mysqld with the --skip-grant-tables option.
3. Set a new password with the mysqladmin password command.
4. Now stop mysqld and restart it normally.
5. After this, you should be able to connect using the new password.
Alternatively, you can set the new password using the MySQL client:
1. Repeat steps 1 and 2 above.
2. Connect to the mysqld server with:
3. Issue the following commands in the MySQL client:
4. Exit out of the MySQL client and restart the server as above.
5. You can now stop mysqld and restart it normally.
Popularity: 15%


