Specifying default command timeout using MySqlConnection
Connection string
This MySQL Connector/Net connection string can be used for connections to MySQL.
Use this one to specify a default command timeout for the connection. Please note that the property in the connection string does not supercede the individual command timeout property on an individual command object.
Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
default command timeout=20;
This option is available from Connector/NET version 5.1.4.