MySQL access denied from node on localhost, but works from CLI mysql
Opened this issue · 0 comments
Tmp2k commented
Since the latest version of Scotch Box my gulp scripts have stopped working...
var execsql = require('execsql');
var connsettings = {
host: 'localhost'
user: 'root',
password: 'root'
};
var sql = 'some SQL';
execsql.config(connsettings).exec(sql);
This throws an access denied error when ran from the VM. However, "mysql -u root -p" on the command line of the VM works just fine.
The gulp script works fine in v3.0 but does not work in v3.5.