简体   繁体   中英

connection refused mysql node.js

I've tried everything under the sun to fix this problem, nothing works! I'm trying to connect to mysql using node.js. I've tried both normal connections and pool connections, but I keep getting the following error: "connect ECONNREFUSED"

I'm working on a Windows 7.

There are many similar questions to this on Stack Overflow, and everyone mentions the mysql configuration file (and commenting out "skip-networking"), however, I can't find where the file is (the mysql module was installed under node_modules). I've tried looking for my.ini and my.cnf, there don't seem to be on my machine either. Is there a way to try to log in to mysql via the command line? It seems like there isn't since the command line doesn't recognize the command "mysql".

I'd post the code that I've been using but that wouldn't help, since I've been using dozens of different alterations, and all fail.

Thanks in advance, I appreciate the help!

多亏了Салман,我才意识到我还需要安装实际的MySQL服务器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM