Howto: How to Reset the MySQL Root Password
The following procedure can be used to reset the password for any MySQL root accounts on Linux and Unix (*nix). The instructions assume that you have got the proper permissions on the host system.
Stop the MySQL daemon process
sudo /etc/init.d/mysql stop
Create a text file /home/me/mysql.sql and place the following statements in it. Replace the password with the password that you want to use
UPDATE mysql.user SET Password=PASSWORD('a_new_password') WHERE User='root';
FLUSH PRIVILEGES;
The UPDATE and FLUSH statements each must be written on a single line. The UPDATE statement resets the password for all existing root accounts, and the FLUSH statement tells the server to reload the grant tables into memory.
Start the MySQL server with the special –init-file option
mysqld_safe --init-file=/home/me/mysql.sql
Press Ctrl+C and then start the MySQL server again by /etc/init.d/mysql start and you are done.
Related posts:
- Howto Recover a Linux Root Password
- Executing SQL Statements from a Text File
- How to hack Windows password with Ophcrack
- Crack Windows Password
- Optimize MySQL Performance With MySQLTuner
- Optimize MySQL for Low Memory Use
- How to reset a Nokia
- MySQL Optimization and Performance Tips
- How to do MySQL replication (dual-master / multi-master)
- Howto: Resize Xen Loop Disk Image
Popular Related Items »
Incoming search terms
- crack mysql root password
- hack mysql root password
- lucid reset mysql password
- mysql root password change
- ubuntu 9 10 mysql root password
- ubuntu 9 10 reset mysql password
- ubuntu 9 10 reset mysql root password
- mysql reset root password
- root password lucid
- mythbuntu mysql root password
- reset mysql password ubuntu 9 10
- mythbuntu 10 mysql root password
- reset mysql pass in ubuntu
- mysql root ubuntu password lucid
- procedure for resetting mysql password
- password mysql decompiling; disassemble
- reset mysql root password
- mythbuntu mysql reset password
- mythbuntu mysql
- mysql windows 7 root password reset
- mysql windows bootstrap root password
- mysql root password mythbuntu 9 10
- how to reset mysql root password ubuntu
- mysql crack root password
- mysql crack users password
- mysql hacked root password reset
- mysql mythbuntu
- mysql password crack
- MySQL password reset on ubuntu sever 9 10
- mysql password windows 7
- mysql reset memory ubuntu
- mysql root password windows
- mysql reset password lucid
- mysql root crack
- mysql root pass
- mysql root pass change on ubuntu 9
- reset mysql pass xp
- reset mysql password
- sql root hack
- ubuntu 9 10 mysql admin password
- ubuntu lucid reset password mysql
- ubuntu mysql change root password
- ubuntu mysql default password
- ubuntu mysql default root password
- windows 7 MySQL root
