Skip to content
WJunction - Webmaster Forum

Help to connect mysql database with C#

Status
Not open for further replies.
Hello,

I'm building a c# windows application which will connect with the mysql database in a remote server.

I'm using the following connect script

string connectionString;
connectionString = "SERVER = eu5.org;UID = myuserid; PASSWORD = mypassword; DATABASE= mydatabasename;";
connection = new MySqlConnection(connectionString);
It shows the error couldn't connect to the database.

P.S: Mysql database is at eu5.org server


Any help ???
 

5 comments

The connection string seems to be fine. Paste the full exception details which you get.
Possibilities are since eu5.org is providing free hosting, they would have disabled external connections to the database and hence you are getting the error.
 
In most cases the answer is yes. I can't remember the last time I couldn't connect to my database from home remotely using a paid host. But better to ask them before buying.
 
Check this one......Mysql Connection


Hello,

I'm building a c# windows application which will connect with the mysql database in a remote server.

I'm using the following connect script

string connectionString;
connectionString = "SERVER = eu5.org;UID = myuserid; PASSWORD = mypassword; DATABASE= mydatabasename;";
connection = new MySqlConnection(connectionString);
It shows the error couldn't connect to the database.

P.S: Mysql database is at eu5.org server


Any help ???
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
666
Messages
153
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom