How Do I Reset The Password For The MySQL Root Account?

Linode Staff

I've forgotten the password for the 'root' account on my database server. How can I reset this?

1 Reply

I'm sorry that you've forgotten the password for your database server's 'root' account. I've actually tested this on my personal database server using the following links as references.

https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html
https://www.howtoforge.com/setting-changing-resetting-mysql-root-passwords

I would give both links a try if one of them doesn't help with your situation.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct