Skip to main content

All Questions

Tagged with
0 votes
0 answers
17 views

While running server.js in kubernetes pods getting errors connect ETIMEDOUT

Error connecting to the database server: Error: connect ETIMEDOUT at Connection._handleTimeoutError (/usr/src/app/node_modules/mysql2/lib/connection.js:205:17) at listOnTimeout (internal/timers.js:557:...
Pranay Masurkar's user avatar
0 votes
0 answers
19 views

Backend container connection issue to production database container in docker

I'm trying to link 3 containers run by Docker to a production stage. The first container is hosting a vuejs 3 application and runs smoothly. The issue arrives when I use the command : sudo docker ...
RemHD's user avatar
  • 11
0 votes
0 answers
32 views

Error connecting to the database: getaddrinfo ENOTFOUND when trying to connect to mysql container using node js

and I keep getting this error when trying to connect to my mysql image through in node.js project Error connecting to the database: getaddrinfo ENOTFOUND 98b6c7aeb8af I can access the container fine ...
Danichayes's user avatar
0 votes
1 answer
59 views

Encoding problem UTF-8 in docker backend image

i try to create mysql and nodejs express image when i run mysql and backend container and open my frontend english text can display but if data is thai text when i use mysql2 to fetch thai text the ...
SaRai's user avatar
  • 3
-1 votes
1 answer
312 views

Connecting nodejs app to a mysql database using docker and docker-compose [duplicate]

I'm trying to connect my node.js app with a mysql database This is my dockerfile FROM node:latest WORKDIR /app COPY . /app RUN npm update RUN npm install RUN npm rebuild bcrypt ENV SERVER_PORT ...
user18222966's user avatar
-1 votes
2 answers
74 views

Error when connecting from NodeJS to MySQL using Docker and containers - ECONNREFUSED

I'm using Docker Compose to define two services: one for the NodeJS App and the other for MySQL. This is the docker-compose: services: app-node: build: . ports: - "3000:3000"...
Lucas David Ferrero's user avatar
-1 votes
1 answer
90 views

how to run a mysql process in docker file with node.js child process

I'm aiming to retrieve MySQL output using a child process in Node.js. Below is a Dockerfile that defines the MySQL container, a sample SQL script (backup.sql), and a set of shell commands to ...
Amelia's user avatar
  • 1
-1 votes
2 answers
57 views

Migrate a finished project to Docker

I have an application created, a Node.js server and a MySQL database. Initially, for this application, Connection with the database is installed via port 3306, the server starts on 3000. I created 2 ...
AVT's user avatar
  • 45
0 votes
0 answers
168 views

One Docker Container Can't Connect to MySQL Container 'ECONNREFUSED'

I'm facing an issue where one of my Docker containers is unable to connect to a MySQL container, resulting in an 'ECONNREFUSED' error. I can connect to MySQL via 'docker exec -it operatorMysql bash' ...
user22689071's user avatar
1 vote
0 answers
63 views

Can't get connected to mysql db using sequelize and docker

I am Trying to connect to Mysql database using docker-compose in node.js ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 192.168.32.2:3306 here is how my docker-...
Luka Akhalbedashvili's user avatar
0 votes
3 answers
337 views

Can't connect nodejs to mysql by docker compose

I try to run my server in NodeJS and a MySQL database using Docker , when I run sudo docker-compose up I get this error in nodejs server: Access denied for user 'Pedro'@'172.19.0.4' (using password: ...
Pedro Castro's user avatar
1 vote
2 answers
122 views

docker-compose: Unable to connect app service to mysql database, receive "Error: Access denied for user 'root'@'localhost' (using password: YES)

I am starting two docker containers through docker-compose. The contents of docker-compose.yml file: version: "3.7" services: app: image: my-app:latest ports: - 8000:8000 ...
afontalv's user avatar
  • 323
3 votes
0 answers
1k views

How to update the prisma in a production docker instance?

I have a node.js application that I run on EC2, and I have that application running on production. After a while, I update the database(schema) by creating another table, how can I also run the ...
n9p4's user avatar
  • 264
0 votes
0 answers
25 views

MySQL Container ECONNREFUSED with executable Nodejs application in Ubuntu Container

I'm building a tool to help me in my final paper at the uni, so I'm doing an executable script in Nodejs to help me dump data from a specific type of file to some databases. As the script can lead to ...
Juliana Aragão's user avatar
-1 votes
2 answers
117 views

Docker compose - Node Express Sequelize Mysql connection error

I'm trying to dockerize a Node express server with MYSQL database with sequelize.js ORM. How can i solve this issue connecting to the database This is my docker-compose.yml file version: '3.9' ...
Sreesanth's user avatar

15 30 50 per page
1
2 3 4 5
13