New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not connect to DB from Node JS but successfully connect from php and phpmyadmin #250
Comments
Hi .. Test Env My Test Sourcevar mysql = require('mysql'); conn.connect(function(err){ conn.query('select * from products',function(err, rows){
}); conn.end();I hope it could be a help to you |
Not. This not help me. I know that your module works fine. I successfully connected to many other databases via your module. But I got this error with this db. Very interesting situation. I can connect to this db via php/python/java - but could not via your module. Maybe problem in user (user without grantable access - only usage). But why I can connect from php with this user. |
I'm not sure why you face connection problems. However I have one thing to suggest you to try.. it's changing the password to simple character like "aaa111" , if there is any none alphabet or number in you password. |
Not. This not help me too. I already tried it. I changed password to 111 and got the same. |
mm. than unfortunately we need to wait for a reply from the developer of this module. |
Yes, I hope too. Thanks. |
I had a close look, but not sure what is going on here. Is there any chance you can make this database available to me over the internet so I can take a deeper look? E-Mail me at |
Unfortunately I do not have the opportunity to provide you with access to this database as against the bosses. |
Does this still fail on the latest version? |
Reopen if it still fails.. |
I have locked this thread because we don't monitor issues closed many years ago. If you are having an issue, please open a new issue and explain what the issue is along with steps to reproduce so we can investigate. |
Hi. I Got a problem. I have a DB and program code in NodeJS for work with this DB. But I got an error :
Access denied for user 'user'@'127.0.0.1' (using password: YES).
But when I tried to connect to this DB from PHP script and from PhpMyadmin all worked correct. I was confused .
So, but when I tried to connect to other DB from NodeJS - all worked correct too. I could not understand what the problem. I tried all options for connection which described in your module but nothing could help me. This is a trace/debug/verbose :
There is my code which I used :
So, I tried use the object style for set params for connect but got the same result. Please help.
Help!
I used your connector and I like it but this situation was confused me and I really need help because I don't know what should do.
The text was updated successfully, but these errors were encountered: