title: About MySQLdb conn.autocommit(True)
body: <p>I have installed python 2.7 64bit,MySQL-python-1.2.3.win-amd64-py2.7.exe.</p>
  
  <p>I use the following code to insert data :</p>
  
  <pre><code>class postcon:
      def POST(self):
          conn=MySQLdb.connect(host="localhost",user="root",passwd="mysql",db="dang",charset="utf8")  
          cursor = conn.cursor()
          n = cursor.execute("insert into d_message (mid,title,content,image) values(2,'xx','ccc','fff')")
          cursor.close()
          conn.close()
          if n:
              raise web.seeother('/')
  </code></pre>
  
  <p>This results in printing n as 1, but in mysql client data aren't visible.</p>
  
  <p>google says I must add <code>conn.autocommit(True)</code>.</p>
  
  <p>but I don't know why MySQLdb  turns it off;</p>