MySQL Forums
Forum List  »  General

Re: Access denied for user 'root'@'localhost' (using password: YES)
Posted by: Peter Brawley
Date: June 01, 2021 10:46PM

Yikes. Stop the server. Then in a cmd client run ...

mysqld --skip-grant-tables --datadir="C:\ProgramData\MySQL\MySQL Server 8.0\Data"

If that errors out, fix the error and try again. When it succeeds, the server is running, so it hangs.

Now in a second cmd window run mysql without authentication arguments (which is the whole point, remember?).

Options: ReplyQuote

Sorry, only registered users may post in this forum.

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.