MySQL Error codes 2002, 2003 Cannot connect

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Check for a Firewall issue blocking port 3306.

Some possible diagnostics and/or solutions

  • Is the server actually running?
  • "service firewalld stop" and "systemctl disable firewalld"
  • telnet master 3306
  • Check the bind-address
  • check skip-name-resolve
  • check the socket.


Got any MySQL Question?