vkzhd Posted September 29, 2016 Posted September 29, 2016 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() Quote
wolstech Posted September 29, 2016 Posted September 29, 2016 Did you turn remote MySQL access on in cpanel? Quote
vkzhd Posted September 30, 2016 Author Posted September 30, 2016 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.