You can change the default value in MySQL configuration file (connect-timeout option in mysqld section) -
[mysqld]
connect-timeout=100
If this file is not accessible for you, then you can set this value using this statement -
SET GLOBAL connect_timeout=100;