S
S
sashadobrota2015-11-29 13:17:24
MySQL
sashadobrota, 2015-11-29 13:17:24

Why is there an access denied error in mysql?

I installed MySQL on OS X El Captain, during the installation a notification appeared with a password for the root user - I saved this password. I started the mysql server, mysql -u root -p, entered the password, to which I received: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES). Anyone suggest what is the problem? For the second day I can not figure it out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2015-11-29
@Rsa97

Try it without a password (without the -p switch), often the default setting for [email protected] will let you.

I
IceJOKER, 2015-11-29
@IceJOKER

This means you entered the wrong password.
As an option to google - "Mysql: reset root password", "Reset mysql root password" ... many articles, I used to use it myself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question