-1
I’m starting with the back-end and I’m having a hard time installing mysql, after installing and doing all procedures while trying to run the mysql the following error appears (it is worth mentioning that I run with sudo)...
first type in terminal
$ sudo mysql
and returns the following error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: NO)
Someone can explain me in detail, how to install correctly, because I’ve watched and read a lot of content but always gives the same error. Thank you
This is no error in the installation, the command
mysql
is without parameters there in your "test", so he is not accessing anything, or I got it wrong.– Guilherme Nascimento
@Guilhermenascimento as I do to pass the parameters, could help me?
– Gustavo Dazzle
@Gustavodazzle, when you installed Mysql set up a password?
– Luiz Felipe
@Luizfelipe no, I just gave the command install msql-server and waited to install.
– Gustavo Dazzle
This is a support issue, not a programming issue. Basically you are trying to use invalid credentials, the error indicates that you have not tried any password. It’s a matter of reading the command line client manual. Additionally, if you search for the bug, you’ll see some posts dealing with the subject (including how to change the password).
– Bacco
What commands? What do you want to do with the mysql command? This has nothing to do with Node.js, Node.js has lib for mysql and has nothing to do with the line command.
– Guilherme Nascimento