How to reset mysql root password ?
- Category : Linux Helpline (Easy Guide)
- Posted on : Jun 06, 2019
- Views : 2,983
- By : Tadashi P.

# service mysql stop #pkill -9 mysqld
2) Start the mysql in safe mode as follows
# mysqld --skip-grant-tables --user=root &
3) Now update the mysql user tables and root password as follows
#mysql
mysql>use mysql;
mysql>UPDATE user SET Password=PASSWORD('YOUR_PASSWORD') WHERE Host='localhost' AND User='root';
mysql>flush privileges;Now add the new password “YOUR_PASSWORD” in /root/.my.cnf and start mysql
# service mysql start
Categories
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
| Sat | Sun | Mon | Tue | Wed | Thu | Fri |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 |
