How to understand "unable to connect" mysql error messages?

I have the following error message:

SQLSTATE [HY000] [2003] Unable to connect to MySQL server on '192.168.50.45' (4)

How would I make it out (I have HY000, I have 2003, and I have (4).

+5
source share
6 answers

HY000 - ODBC, 2003 - , MySQL, , . 4 - , MySQL. (, Linux "(111)", , connect() ECONNREFUSED, 111.)

+10

perror, MySQL:

shell> perror 4
OS error code   4:  Interrupted system call

, , - (errno 111)

+4

FWIW, 2-3 , , , ( ) (4) , . , (4) . unix, "netem" .

- . (4), . , , . , , , , , , .

+3

. connect_timeout.

+1

.

DNS-, .

[] ... ... -

MySQL, .

0

@cdhowie , , (4) mysql, . . - , -. "" , , , - .

0

All Articles