Connecting C# to MySQL database

Status
Not open for further replies.

davidric

New Member
Messages
11
Reaction score
0
Points
1
Hi guys,
I'm trying connect in my C# the database from server.
But I always get the error "Unable to connect to any of the specified MySQL Hosts".

I have saw some topics in web but nothing was working here...

I think server is 198.91.81.5, database is mydatabase and uid/password is from the user I created. Yes, I have the connector from MySQL Installer and from VS.

Someone can help ?
 

davidric

New Member
Messages
11
Reaction score
0
Points
1
Yes, the servers allow remote connections... have that in cPanel but someone is missing here
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
Free hosting actually blocks remote through firewall, only localhost database connections will work.

Unfortunately I'm not sure we can tell cPanel to not show that option though since it is not going to work.
 

davidric

New Member
Messages
11
Reaction score
0
Points
1
So, to I communicate my data in C# to database I can to use a script in PHP ?
 

Anna

I am just me
Staff member
Messages
11,751
Reaction score
581
Points
113
Yes, that should work, as long as communication is done on an open port (only the most common, such as port 80 for web, would be open on free hosting), I wouldn't know how to code anything like that however :)
 
Status
Not open for further replies.
Top