title: Run "show slave status" with PHP PDO
body: <p>I am trying to get the slave status of my MySQL server using PHP's PDO implementation. Running <code>fetchAll()</code> returns an empty array.</p>
  
  <pre><code>// DB IP, name, username, and password are fake here. I can connect.
  $db = new PDO('mysql:host=192.168.0.0;dbname=production', 'username', 'password');
  $result = $db-&gt;query("SHOW SLAVE STATUS");
  $result-&gt;execute();
  
  if ($result != false)
  {
      $slave = $result-&gt;fetchAll(PDO::FETCH_ASSOC);
  }
  </code></pre>
  
  <p>I have also tried removing the <code>-&gt;execute()</code> call, but it's the same result. Is there something completely obvious that I'm missing here? I've looked up and down the PDO::query documentation and it's not helping much.</p>