MySQL Forums
Forum List  »  Security

Re: Recovering super-user access
Posted by: Georgi Kodinov
Date: February 27, 2017 02:10AM

Hmm, restarting the server should have been enough after a successful rename user.
But in case it doesn't work here's how to create a new one:

Your instinct to use --skip-grant-tables is correct.

You:
1. start the server with --skip-grant-tables
2. connect to it
3. do FLUSH PRIVILEGES
4. (optionally) create a new user: CREATE USER ....
5. grant ALL PRIVILEGES to some user (GRANT ALL PRIVILEGES ...)

Options: ReplyQuote


Subject
Views
Written By
Posted
1093
February 22, 2017 06:30AM
Re: Recovering super-user access
520
February 27, 2017 02:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.