Reset MySQL root password on Bitnami server

To reset MySQL root password on Bitnami server, first check MySQL server version you are running.

Create a file

Add following text

For MySQL 5.7 or MySQL 8

For MySQL 5.6

In above code, replace NEW_PASSWORD with your new MySQL root password.

Stop MySQL

Reset MySQL root password by running

MySQL 5.7/MySQL 8

If you are using MySQL 5.6 or older, run

Restart MySQL

Now you should be able to login to MySQL server with command

See Bitnami, Reset MySQL root Password

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *