title: MySQL remote query works, but remote insert fails via Python
body: <p>I'm running Ubuntu 16.04 with MySQL.  I've opened the MySQL server for remote connections, and my remote Python script can query my database, but all attempts to INSERT fail without any error log entry.  </p>
  
  <p>It also looks like my remote INSERTs are being seen, because my AUTO_INCREMENT ID increases without entries being made when I run the Python INSERT code.</p>
  
  <p>Any insight is appreciated!</p>
  
  <p>Simple table schema:</p>
  
  <pre><code>CREATE TABLE test (
      ID int NOT NULL AUTO_INCREMENT,
      x INT,
      PRIMARY KEY (ID)
  );
  </code></pre>
  
  <p>This works directly on the server:</p>
  
  <pre><code>INSERT INTO test (x) VALUES (10);
  </code></pre>
  
  <p>This is the Python query that's working:</p>
  
  <pre><code>try:
      connection = db.Connection(host=HOST, port=PORT, user=USER, passwd=PASSWORD, db=DB)
      cursor = connection.cursor()
      print("Connected to Server")
  
      cursor.execute("SELECT * FROM test")
      result = cursor.fetchall()
      for item in result:
          print(item)
  
  except Exception as e:
      print('exception connecting to server db: ' + str(e))
  
  finally:
      print('closing connection...')
      connection.close()
  </code></pre>
  
  <p>And the Python INSERT that's not working:</p>
  
  <pre><code>try:
      connection = db.Connection(host=HOST, port=PORT, user=USER, passwd=PASSWORD, db=DB)
      cursor = connection.cursor()
      print("Connected to Server")
  
      cursor.execute("INSERT INTO test (x) VALUES (10);")
  
  except Exception as e:
      print('exception connecting to server db: ' + str(e))
  
  finally:
      print('closing connection...')
      connection.close()
  </code></pre>
  
  <p>Thanks</p>