Problem Description:
Use nodejs to connect to the MySQL database of ECs and execute the JS file. The error is as follows:
Error: connect ETIMEDOUT
{
errorno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
fatal: true
}
Solution:
Because the server port is not open (MySQL default port is 3306)
go to the server firewall and open the port
Read More:
- [Solved] Error: ER_HOST_NOT_PRIVILEGED: Host ‘x.x.x.x‘ is not allowed to connect to this MySQL server
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- [Solved] mysqldump Command Error: Got error: 2002: “Can‘t connect to server on ‘127.0.0.1‘ (36)“ when trying to connect
- DVWA Uncaught Error: Call to undefined function mysql_connect() in /Applications/XAMPP/xampp
- Ubuntu ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- [Solved] docker mysql SQLSTATE[HY000] [2002] Connection refused
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- host ‘‘ is not allowed to connect to this mysql server Connect MYSQL Error
- [Solved] C# connecting to MySQL database reports an error
- [Solved] CentOS installs MySQL and starts MySQL with error 2002 (HY000)
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- MySQL Install Error: MySQL error 1042: Unable to connect to any of the specified MySQL hosts
- [Solved] MySQL connection error: communications link failure
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata
- mac brew install mysql ‘/tmp/mysql.sock’ (2) [How to Solve]
- Navicat connected to Mysql error: Client does not support authentication protocol requested by server;