MySQL Forums
Forum List  »  General

Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES))
Posted by: Jon Stephens
Date: June 02, 2025 09:40AM

Usually that error indicates that the password you used is incorrect. It can also mean that you're trying to use a password with an account for which none has been set.

Try mysql -uroot without any other arguments. If that works, then there's no password for the root account (and you should set one!). If it doesn't, and you don't know the correct password, see How to Reset the Root Password, in the MySQL Manual.

cheers,

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Written By
Posted
Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES))
June 02, 2025 09:40AM


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.