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()
wolstech Posted September 29, 2016 Posted September 29, 2016 Did you turn remote MySQL access on in cpanel?
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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now