You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this service. I recently updated mysql2 version from 2.3.3 to 3.12.0
The db in the production environment is mysql v 5.7.26
eversince then i have problems with changeUser().
Error: Access denied for user 'username'@'ip' (using password: NO)
at PromisePoolConnection.changeUser (d:\workspace\node_modules\mysql2\lib\promise\connection.js:160:22)
at Object.getProxyNodeConnection (d:\workspace\src\crons\setup-sql-connection.js:18:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async test (d:\workspace\src\crons\test.js:21:18) {
code: 'ER_ACCESS_DENIED_ERROR',
errno: 1045,
sqlState: '28000',
sqlMessage: "Access denied for user 'username'@'ip' (using password: NO)"
}
the exact same code used to work fine with mysql2 v 2.3.3
I have this service. I recently updated mysql2 version from 2.3.3 to 3.12.0
The db in the production environment is mysql v 5.7.26
eversince then i have problems with changeUser().
lets say that i create a pool
the connection works flawlessly
but when i try to change user (the actual reason for this is to switch to and fro between different dbs)
i keep on getting this error
the exact same code used to work fine with mysql2 v 2.3.3
@sidorares @iarna @sushantdhiman @Dieken @wellwelwel
The text was updated successfully, but these errors were encountered: