Why is there no data result from simple PDO MySQL query
<p>I created a table and row using phpmyadmin.</p>

<blockquote>
  <p>[table info]</p>
  
  <p>table name : testTbl field name : id, number id=1 number=100</p>
</blockquote>

<pre><code>$dsn = sprintf(
    'mysql:dbname=%s;host=%s',
    get_cfg_var('zend_developer_cloud.db.name'),
    get_cfg_var('zend_developer_cloud.db.host')
);

$db = new PDO(
    $dsn,
    get_cfg_var('zend_developer_cloud.db.username'),
    get_cfg_var('zend_developer_cloud.db.password')
);

$sql = 'select * from testTbl;';
$stmt = $db-&gt;prepare($sql);
$stmt-&gt;execute();
$result = $stmt-&gt;fetchAll();

var_dump($result); // empty  why?
</code></pre>
