Specifying connection attempt timeout using MySqlConnection

Connection string

This MySQL Connector/Net connection string can be used for connections to MySQL.

Use this one to specify the length in seconds to wait for a server connection before terminating the attempt and receive an error.

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Connection Timeout
=5;