title: PHP/PDO - Flush privileges
body: <p>I'm doing some mysql server management with a script that flushes the MySQL users privileges when new privileges are added to a MySQL user.</p>
  
  <p>I'm using the PDO class to do my queries, but when I do a simple</p>
  
  <pre><code>FLUSH PRIVILEGES;
  </code></pre>
  
  <p>I get, for </p>
  
  <pre><code>$connection-&gt;exec('FLUSH PRIVILEGES;');
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$connection-&gt;query('FLUSH PRIVILEGES;');
  </code></pre>
  
  <blockquote>
    <p>SQLSTATE[42S02]: Base table or view
    not found: 1146 Table 'mysql.servers'
    doesn't exist</p>
  </blockquote>
  
  <p>Is it possible to do such query with the PDO class or do I have to resort to using mysql(i)?</p>