Jump to content

C# Program Unable To Access Mysql Database Remotely With Stevie.heliohost.org


Recommended Posts

Posted

Hi guys. I was trying to make my c# program to access mysql database with stevie.heliohost.org but it keeps showing error. Please help me with it.

 

string cs = "host=stevie.heliohost.org;database=***;uid=***;password=*** ";

 

is there anything wrong with this line? I have hide my database, uid and password for security purpose.

 

The error im getting is as below:

 

Error: MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()

 

 

 

Posted

Yes Sir. I did turn remote MySQL access in cpanel with "%". Actually if i uses php to connect the MySQL remotely by using host name as "stevie.heliohost.org", it able to make connection with the database. But, when i'm connecting using C# and mysql connector/.NET, it show the error above.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...