title: Every query creates a new CONNECTION_ID()
body: <p>Each and every SQL query I issue to my <code>MySQL</code> server creates a new (increments) <code>CONNECTION_ID()</code>. This happens both on my local as well as on my shared remote server.</p>
  
  <p>Is this the reason behind <code>LAST_INSERT_ID()</code> and <code>ROW_COUNT()</code> resulting in <code>0</code>? How to address this issue?</p>
  
  <p>Originally in <a href="https://stackoverflow.com/questions/13880267/mysql-last-insert-id-returns-0">MySQL: LAST_INSERT_ID() returns 0</a></p>