Any way to trace MySqlConnection to detect reasons for slow connection
问题 I need to find some way in C# to trace the MySqlConnection.Open() methods connection to find out why it's taking over 15 seconds just to establish the connection. I.e to see some kind of connection log to find out whats holding it up. The code below is in an otherwise empty project and I've tried disabling the firewall and changing the port. Please help I've been trying to fix this for two days now and I'm almost admitting defeat. EDIT: Also the port is 3310 instead of the 3306 mySQL default