Connecting via TCP/IP through a firewall
I am trying to connect to my MySql Database using Connector/NET for my ASP.NET application. I normally have no problem connecting to the database, but I have been given the challenge of connecting to my MySql database from a web server in the DMZ through a firewall. The port 1432 has been opened in the firewall to make this connection. The server that I am connecting to has the Address of 10.0.0.1
I am using the connection string:
“Server=10.0.0.1;Port=1432;Database=aDatabaseName;Username=aUserName;Password=aPassword;”
When I try to connect I get the error message:
Unable to connect to any specified MySql host.
The web server does not contain any other kind of MySql installation. In my bin directory the MySql.Data.dll is present.
I was able to get a connection to SQL Server on the same web server, but I did have to install MDAC. Do I have to include any other files besides the Connection/NET (MySql.Data.dll) DLL.
Subject
Written By
Posted
Connecting via TCP/IP through a firewall
November 07, 2004 05:46PM
November 07, 2004 06:35PM
November 07, 2004 10:10PM
November 09, 2004 04:33PM
November 10, 2004 07:30AM
November 10, 2004 08:27AM
November 11, 2004 04:03PM
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.