Answer the question
In order to leave comments, you need to log in
How to connect to local mysql server without password?
I installed VestaCP along with mysql server.
While picking root privileges, he broke his login without a password using the mysql or mysql -u root command.
Now, when I write one of these commands, I get:
'Access denied for user 'root'@'localhost' (using password: YES)'
There is nothing in the database, except for the settings from the vesta and its standard user database.
Answer the question
In order to leave comments, you need to log in
" (using password: YES)" - means, after all, the password is set when connecting. Try explicitly specifying an empty password.
you can add
skip-grant-tables to my.cnf
this will allow you to connect without a password
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question