Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied for user 'root'@'localhost' #205

Open
ahmedbhk opened this issue Feb 17, 2019 · 1 comment
Open

Access denied for user 'root'@'localhost' #205

ahmedbhk opened this issue Feb 17, 2019 · 1 comment

Comments

@ahmedbhk
Copy link

I am using nodejs v8.11.1
mariasql 0.2.6
username root
no password
and this is my client config
var c = new Client({
host: '127.0.0.1',
user: 'root'
});

when I run I have this error
Error: Access denied for user 'root'@'localhost'

when I use mysql -u root
it works fine

@melo1523
Copy link

you need set port number, and password of maria db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants