List:MySQL ODBC« Previous MessageNext Message »
From:Al McNicoll Date:December 21 2010 9:33am
Subject:RE: Mysql connection Error
View as plain text  
Hi Mubarak,

It looks to me as though you're trying to connect to a MySQL server on port
8443 (that's the bit after the colon in To my
knowledge, the most common use of port 8443 is for Plesk or Parallels
administration. MySQL runs by default on port 3306. Try either removing the
:8443 or else replacing it with :3306.

Also, you said that you'd include your connection string. I can't see it

By the way, try having a look at for
general help on MySQL connection strings.

Kind regards,

Al McNicoll
Integritec (UK) Limited

-----Original Message-----
From: mubarak shaikh [mailto:amubarak.shaikh@stripped] 
Sent: 21 December 2010 06:49
To: myodbc@stripped
Subject: Mysql connection Error

*I have Using MySQL PHP Admin Client 5.2*following is my Connection
String(Using Visual Studio 2005)

Server Error in '/' Application.
*ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '' (11004)**Description: *An unhandled exception
occurred during the execution of the current web request. Please review the
stack trace for more information about the error and where it originated in
the code.

*Exception Details: *System.Data.Odbc.OdbcException: ERROR [HY000]
[MySQL][ODBC 3.51 Driver]Unknown MySQL server host '' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '' (11004)

*Source Error:*

Line 23:     protected void Button1_Click(object sender, EventArgs e)
Line 24:     {
Line 25:         mySqlConnection.Open();
Line 26:         String Date = System.DateTime.Today.ToShortDateString();
Line 27:         OdbcCommand anb =  new OdbcCommand();

Please Give me Reply

Mysql connection Errormubarak shaikh21 Dec
  • RE: Mysql connection ErrorAl McNicoll21 Dec
  • Re: Mysql connection ErrorAshish Rathore9 Jun
    • RE: Mysql connection ErrorJohn Bonnett10 Jun