Error code

MySQL 2003

MYSQL2003
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

Can't connect to MySQL server on host — connection refused or host unreachable.

How to fix it

  1. Confirm MySQL is running and listening on the expected port with netstat -tlnp | grep 3306.
  2. Check firewall and security group rules to ensure the MySQL port (default 3306) is open to the client.
  3. Verify the hostname and port in the connection string are correct.

Not affiliated with MySQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.