Mysql connection Error

Mysql connection Error

am 21.12.2010 07:48:52 von mubarak shaikh

--0003255751ea9a613d0497e6070d
Content-Type: text/plain; charset=ISO-8859-1

*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 '
https://174.133.216.21:8443/' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '
https://174.133.216.21:8443/' (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 '
https://174.133.216.21:8443/' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '
https://174.133.216.21:8443/' (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

--0003255751ea9a613d0497e6070d--

RE: Mysql connection Error

am 21.12.2010 10:33:33 von Al McNicoll

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 https://174.133.216.21:8443/). 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
anywhere.

By the way, try having a look at http://www.connectionstrings.com/mysql for
general help on MySQL connection strings.

Kind regards,

Al McNicoll
Integritec (UK) Limited


-----Original Message-----
From: mubarak shaikh [mailto:amubarak.shaikh@gmail.com]
Sent: 21 December 2010 06:49
To: myodbc@lists.mysql.com
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 '
https://174.133.216.21:8443/' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '
https://174.133.216.21:8443/' (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 '
https://174.133.216.21:8443/' (11004)
ERROR [HY000] [MySQL][ODBC 3.51 Driver]Unknown MySQL server host '
https://174.133.216.21:8443/' (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 ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org

Re: Mysql connection Error

am 09.06.2011 12:10:09 von Ashish Rathore

Hello mubarak shaikh!
I also have the same problem.I tryed alot to solve this problem but i am unable
to solve it.If you Solved this problem then please help me.
I want to connect my web c# asp.net application to linex server mysql database.


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org

RE: Mysql connection Error

am 10.06.2011 02:14:44 von John.Bonnett

Connecting to MySQL database in C# is quite easy. Just make sure you have t=
he MySQL.Data connector installed and have a reference to it in your C# pro=
ject, then the following code should get you connected.
You need to replace the things in angle brackets below with values appropri=
ate for your installation.

MySql.Data.MySqlClient.MySqlConnection MySQLConnection;
String ConnectionString;=20

ConnectionString =3D "Database=3D;Data Source=3D ddress>;User Id=3D;Password=3D";
MySQLConnection =3D New MySql.Data.MySqlClient.MySqlConnection(ConnectionSt=
ring);
MySQLConnection.Open();

______________

Carl Zeiss Vision
Software Engineer
Asia Pacific

John Bonnett


-----Original Message-----
From: Ashish Rathore [mailto:Ash.rathore247@gmail.com]=20
Sent: Thursday, 9 June 2011 7:40 PM
To: myodbc@lists.mysql.com
Subject: Re: Mysql connection Error

Hello mubarak shaikh!
I also have the same problem.I tryed alot to solve this problem but i am un=
able to solve it.If you Solved this problem then please help me.
I want to connect my web c# asp.net application to linex server mysql datab=
ase.



--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg