Nov 17, 2016 03:29 PM|Harambe|LINK
I've just started working at a software company and have been asked to look at an error a customer has been getting on a program.
I've never worked with MySQL before so I'm not really familiar with how it all works... I'm getting the following error when opening the MySQL connection.
Failed to connect to MySql Database on web site. The error was: MySql.Data.MySqlClient.MySqlException(0x80004005): Unable to connect to any of the specified MySQL hosts.
This is the line that throws the error;
cnMySql.Open() ' cnMySql is a connection
The connection string is; SERVER=server1.xxxxxxxxxx.com;PORT=3306;DATABASE=gvzglass_wp4;UID=*******;PWD=*****;Convert Zero Datetime=True
What is causing the issue, and how do I resolve it?