title: pymysql.err.OperationalError - Lost connection to MySQL server during query
body: <p>I am using Python script to insert records into MySQL database table.
  The script fails with the following error message.</p>
  <p><em><strong>MySQL version is 8.0.17</strong></em> ,<strong>Python version  3.6.5</strong></p>
  <p>(pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query ([WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)')</p>
  <p><strong>(Background on this error at: <a href="http://sqlalche.me/e/e3q8" rel="nofollow noreferrer">http://sqlalche.me/e/e3q8</a>)</strong></p>
  <p>The issue is for only few tables.</p>
  <p><a href="https://i.stack.imgur.com/iGeJD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iGeJD.png" alt="enter image description here" /></a></p>