I have 4 threads, each opening a seperate connection using mysql_init() and mysql_real_connect().
For some reason, the first thread connects successfully and the other 3 fail with:
Can't connect to MySQL server on '127.0.0.1' (111).
I've linked against the re-entrant client library, and the connections are not being shared - each thread operates on it's own.
I can log in using the monitor multiple times with no problems.
Can anyone suggest anything?
December 10, 2011 09:18PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.