node-mariasql icon indicating copy to clipboard operation
node-mariasql copied to clipboard

Access denied for user 'root'@'localhost'

Open ahmedbhk opened this issue 6 years ago • 1 comments

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

ahmedbhk avatar Feb 17 '19 15:02 ahmedbhk

you need set port number, and password of maria db

melo1523 avatar Apr 17 '19 11:04 melo1523