title: Autocommit with PDO
body: <p>The rollback of my transaction doesn't work.
  How do I set autocommit to false (or 0) in the php script using PDO (I have InnoDB 5.7.18) ?</p>
  
  <p>Here is my code: </p>
  
  <pre><code>     global $bdd;  //defined with PDO
  
         try {                             
              $bdd-&gt;beginTransaction();
              /* my requests */
              $bdd-&gt;commit();
          } catch (Exception $e) {
              $bdd-&gt;rollBack();
              return $e-&gt;getMessage();
          }
  
          return true;
      }
  </code></pre>