Re: MySqlException: Unable to connect to any of the specified MySQL hosts
Posted by: John-Casey O'Donnell
Date: November 07, 2007 09:39PM

I had the same problem, which was related to my connection string. The following caused the connection to fail:

- Parameters delimited by commas
- Port specified as part of "server" parameter (instead of as its own "port" parameter)

The following parameters I found to be interchangeable (i.e. both work):

- "User ID" or "uid"
- "password" or "pwd"

My actual connection string looks like this:

String ^ strConn = "uid=db_user;server=localhost;port=3307;pwd=cygnusx1";



Edited 1 time(s). Last edit at 11/07/2007 09:41PM by John-Casey O'Donnell.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySqlException: Unable to connect to any of the specified MySQL hosts
November 07, 2007 09:39PM


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.