Reset MariaDB Root Password in CentOS 6.4

I have forgot my MariaDB root password and when trying to reset the root password I was thinking, “Let Unixmen readers know how I have solved my issue”.

First, stop running MySQL daemon:

Start MySQL Daemon in Safe Mode:

Login to MariaDb server without a password:

Set the  new password in the line below:

Flush privileges on exit:

Restart  MySQL daemon:

Login now  to  check the new password:

Show the tables or databases:

Done!

 

 

Souce:https://www.unixmen.com/reset-mariadb-root-password/

未经允许不得转载:VPS啦 » Reset MariaDB Root Password in CentOS 6.4

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏