access denied - MySQL and NodeJS

Gaspar

Registered
Jun 11, 2019
1
0
1
Argentina
cPanel Access Level
Root Administrator
Hi, I'm trying to run a NodeJS (Loopback) application which connects to a MySQL database.

I can not get MySQL to allow me access, I always get the error: "access denied for user '[user]' @ 'localhost'.

Does anyone have an idea why this may be happening?

Try with different users, with the root user, with the user where the database is created, create users from cPanel and assign them to the base, but no way does it allow me access.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,910
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
I can not get MySQL to allow me access, I always get the error: "access denied for user '[user]' @ 'localhost'.
Hello @Gaspar,

Can you confirm that your application is connecting from the local cPanel & WHM and that traffic isn't coming from a remote IP address? Also, what are you using as the server name in your application's MySQL configuration settings (e.g. localhost or 127.0.0.1)?

Thank you.