DEV Community

Cover image for Node.js Error: connect ECONNREFUSED - how to connect Node with phpMyAdmin

Node.js Error: connect ECONNREFUSED - how to connect Node with phpMyAdmin

Dan Neamtu on December 29, 2019

I spend more than 6 hours searching and testing, I get frustrated, angry and you know... just for 3 minutes job. Here it's my success story with ...
Collapse
 
amfsouza profile image
Antonio Marcos Fernandes de Souza

Well, I have the same issue but in my case, I'm getting the Postgresql with Node.js and TypeScript. My app is containerized and I see that I can connect the Dbeaver with my database container. Maybe I have too spend some days... to solve that obstacle. You know in our career every day is not the same the day before. We are warriors my friend.

Collapse
 
luissotoj profile image
Luis Eduardo Sotoj

Hello, I've the same issue, but my db is on RemoteMysql.

Have your a similar scenario?

Collapse
 
samueltdaly profile image
Dale Dobak

I love you for this! 2 Days I search for the solution and you fixed it in 4 min!!! Thank you sir

Collapse
 
upsier profile image
Dan Neamtu • Edited

Glad to help you! Thank you!

Collapse
 
haidotcom profile image
haidotcom

In my case,
change
from
host: "localhost"
to
host: "127.0.0.1"
is work

Collapse
 
dignelsonx profile image
DignelsonX

Thank you so much bro!!

I had this problem on my MacBook and I had no idea how to fix it...

Thank you!

Collapse
 
henryherrington profile image
henryherrington

Wow thank you so much! I was about to give up on this error.

Collapse
 
farukdeste profile image
farukdeste

Grateful for this

Collapse
 
prezine profile image
Precious Tom

How do I get the IP Address from MAMP?

Collapse
 
mahmoud_bebars profile image
m.bebars

it was a quite tricky and needed to give my user lots of privileges but with some more research I got it right

Collapse
 
muhammadfazeel profile image
Muhammad Fazeel

thanks for sharing

Collapse
 
mahamoudkh6 profile image
mahamoudkh6

bonjour, j'ai toujours la meme erreur malgré que j'ai suivis tout ce vous avez fais mais avec mamp.
est ce que je pourrais avoir de l'aide svp?