title: Is it required to close python SQL connection in Flask app?
body: <p>I've the code like this below. Is it necessary to close mysql connection because whenever my home page is requested, a new sql connection will be created? </p>
  
  <p>I randomly get Connection Limit error. But I'm not sure if the DB connection is the problem.</p>
  
  <pre><code>@app.route("Home", methods=["GET"])
  def get_home_page():
       db = mysql.connect(host, user, password, db_name, charset='utf8', use_unicode=True)
       ...
  </code></pre>