All for Joomla All for Webmasters

How to Recover MySQL root Password


Do you lost or forgot mysql root password ? No problem…! You can recover MySQL database server password with following steps.

First Stop mysql service.

# /etc/init.d/mysqld stop

Start MySQL server without password:

# mysqld_safe   – -skip-grant-tables &

Connect to mysql server using mysql client:

# mysql -u root

Setup new MySQL root user password

mysql> use mysql;
mysql> update user set password=PASSWORD(“NEW-PASSWORD”) where User=’root’;
mysql> flush privileges;
mysql> quit

Finally restart MySQL Server and test it.

# /etc/init.d/mysqld restart

# mysql -u root -p

Read More about Technology News


Like it? Share with your friends!

1 SHARES
0
1 SHARES, 0 points

How to Recover MySQL root Password

log in

Become a part of our community!

reset password

Back to
log in
Choose A Format
Personality quiz
Trivia quiz
Poll
Story
List
Meme
Video
Audio
Image