I get this error message:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

when i try to enter mysql from terminal (Macos).

closed as unclear what you're asking by MDCCL, Michael Green, Mr.Brownstone, ypercubeᵀᴹ, mustaccio Feb 10 at 15:49

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


I have seen this before. Have you set you root password properly? Before trying to login, set the password and ensure that permissions allow root from localhost to login.

Last I remembered, if you have not explicitly allowed root from localhost to login or some sort of wildcard that covers that, you will get such an error.

Not the answer you're looking for? Browse other questions tagged or ask your own question.