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] mysqldump Command Error: Got error: 2002: “Can‘t connect to server on ‘127.0.0.1‘ (36)“ when trying to connect
- host ‘‘ is not allowed to connect to this mysql server Connect MYSQL Error
- MYSQL Create TIMESTAMP and Save Error: ERROR 1067 (42000): Invalid default value for ‘last_updated_on’
- SqlSugar Connect MySql 8.0.29 Error [How to Solve]
- [Solved] Error: ER_HOST_NOT_PRIVILEGED: Host ‘x.x.x.x‘ is not allowed to connect to this MySQL server
- Ubuntu ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- [Solved] MYSQL Connect Error: Communications link failure
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- DVWA Uncaught Error: Call to undefined function mysql_connect() in /Applications/XAMPP/xampp
- How to Solve c3p0 connect mysql8.0 Error
- [Solved] Sphinx macos sql_connect: failed to load libmysqlclient
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- [Solved] Anaconda Error: pyqt can’t use QSqlDatabase to connect to MySQL
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- C# Connect MYSQL Error: MySql.Data.MySqlClient.MySqlException:“SSL Connection error.”