I don't use localhost for mysql connections:
My code for MySQL connection:
Dim Conn As New MySqlConnection("server=mysql.hostinger.co.uk; user id=u691546972_***; password=*****; database=u691546972_db;")
Conn.Open()
My server is remote: mysql.hostinger.co.uk
During connection, MySqlConnection
produces an exception:
Exception: MySqlException
Exception message: Unable to connect to any of the specified MySQL hosts.
Which is the issue with the connection?