reset mysql root password
You may forget root password of your mysql database, follow instruction below to reset it.
- Add a entry in
my.cnf
:
1 |
|
- then restart mysql server, now you can login as root without prompting password.
- execute as below:
1 |
|
- Do not forget to delete the entry you have added in step
1
after this command:
reset mysql root password
https://rug.al/2013/2013-08-05-reset-mysql-root-password/