title: How can I change the default Mysql connection timeout when connecting through python?
body: <p>I connected to a mysql database using python <code>con = _mysql.connect('localhost', 'dell-pc', '', 'test')</code>
  The program that I wrote takes a lot of time in full execution i.e. around 10 hours. Actually, I am trying to read distinct words from a corpus. 
  After reading was finished there was a timeout error.</p>
  
  <p>I checked Mysql default timeouts which were:</p>
  
  <pre><code>+----------------------------+----------+
  | Variable_name              | Value    |
  +----------------------------+----------+
  | connect_timeout            | 10       |
  | delayed_insert_timeout     | 300      |
  | innodb_lock_wait_timeout   | 50       |
  | innodb_rollback_on_timeout | OFF      |
  | interactive_timeout        | 28800    |
  | lock_wait_timeout          | 31536000 |
  | net_read_timeout           | 30       |
  | net_write_timeout          | 60       |
  | slave_net_timeout          | 3600     |
  | wait_timeout               | 28800    |
  +----------------------------+----------+
  </code></pre>
  
  <p>How can I change the default timeout ?</p>