Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding CUBEJS_DB_PASSWORD alias for CUBEJS_DB_PASS #733
Comments
Hi @gokulanv! This error is most likely caused by wrong credentials/host etc. Could you try connecting to the DB directly and see if the error persists? |
@vasilev-alex Is this config right? CUBEJS_DB_HOST Server - |
ok, looks like you should use |
Yes, I just saw that from the documentation and changed it. Thanks, works now |
@vasilev-alex Would love to start contributing to CubeJs starting with this issue. Can I make a PR for the same? |
@gokulanv yes, would be great! |
@vasilev-alex I have updated all the driver js files to read CUBEJS_DB_PASSWORD as well. Can you please direct me to the instructions to test the changes? |
@gokulanv I don't think we have tests for that. You can just run it and see if that works. I'll also take a look at the PR. |
Describe the bug
A clear and concise description of what the bug is.
Error: ER_ACCESS_DENIED_ERROR: Access denied for user ''@'' (using password: NO)
To Reproduce
Steps to reproduce the behavior:
Used these keys -
CUBEJS_DB_HOST
CUBEJS_DB_NAME
CUBEJS_DB_PORT
CUBEJS_DB_PASSWORD
CUBEJS_DB_USER
CUBEJS_DB_TYPE
CUBEJS_API_SECRET
Server -
CubejsServerCore.create({
dbType: 'mysql',
schemaPath: path.join('src', 'schema')
}).initApp(app);
When I run a query, I get this error -
Error: ER_ACCESS_DENIED_ERROR: Access denied for user ''@'' (using password: NO)
So, I am not able to connect to remote MySQL DB.