I'm not using AWS RDS, only using AWS EC2.
I uploaded my data to the MySQL server on AWS EC2 Ubuntu 20.04 on port 3306.
Also, at that ubuntu, I am running my Node.js web server on port 3000.
But, the web server can't reach the MySQL server. They always say
err : { Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
The above picture is my inbound rule now.
I checked my data is in MySQL server using some query...
Is there anything to do more?
If you need more information about my setting or something, please let me know.
mysqlcli to connect to your db?