Re: MySqlException: Unable to connect to any of the specified MySQL hosts
Posted by: rene98c
Date: February 26, 2005 11:45AM

So ,as I understand you have server application working day by day (24/7) .And after certain time interval passes, server app connects to mysql, retrieves/stores some data. am I Right?
And sometimes, it connects and sometimes not?

If connection string is like:

("user id = root;database=mysql;host=localhost,password=root")

comma is separator,not semicolon
And mysql takes host name as "localhost,password=root".
And exception is thrown when host is incorrect.

But that was not the case with you.I tried this, with small application
to be sure.

If sometimes connects and sometimes not, maybe theres some problem down to physical
data layer, like cables or switches, that messes with your mind.

Of course this only my opinion.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySqlException: Unable to connect to any of the specified MySQL hosts
February 26, 2005 11:45AM


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.