how to connect my vb.net 2010 app to server x10hosting

online75

New Member
Messages
1
Reaction score
0
Points
0
hi gud day to all of you... i want to connect my vb.net program to x10hosting but it's not working. it always gives me an error "unable to connect to any of the specified mysql hosts"

i tried this 3 connection string one by one but still it gives me same error

1st connection:
MySQLConnectionString.ConnectionString = "Server=ns1.x10hosting.com; userid=userid; password=password; DATABASE=database"

2nd connection:
MySQLConnectionString.ConnectionString = "Server=ns2.x10hosting.com; userid=userid; password=password; DATABASE=database"

3rd connection:
MySQLConnectionString.ConnectionString = "Server=74.86.116.190; userid=userid; password=password; DATABASE=database"

anyone? thanks and God bless
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Remote MySQL access is disabled on Free Hosting accounts; your database can only be accessed by scripts running on the Free Hosting servers using the hostname "localhost". If you need external access, you will need to build a PHP-based web API (which then can be accessed by a remote app).

Note, too, that x10Hosting accounts are for web sites, not data storage, so you'd need to have something more than just an API running on your site.
 
Top