Jump to content

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


Recommended Posts

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()




Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...