I can log in with the same credentials from Windows Command Line and from MariaDB admin. But trying to log in from node.js app fails...
const mariadb = require('mariadb');
const pool = mariadb.createPool({
host: 'localhost',
user:'nikol',
password: 'nbuser',
database: 'nodedb'
});
I get that error:
SqlError: Error during pool initialization: (conn=197, no: 1045, SQLState: 28000) Access denied for user 'nikol'@'localhost' (using password: YES)
I can also log in as root user from command line, but not from node js app. Any suggestions?