title: magento pdo_mysql extension is not installed
body: <p>I have a problem with magento command : php shell/indexer.php reindexall</p>
  
  <blockquote>
    <p>Stack trace:</p>
    
    <p>0 /home/taatoo/www/lib/Zend/Db/Adapter/Abstract.php(459): > Varien_Db_Adapter_Pdo_Mysql->_connect()</p>
    
    <p>1 /home/taatoo/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)</p>
    
    <p>2 /home/taatoo/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)</p>
    
    <p>3 /home/taatoo/www/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')</p>
    
    <p>4 /home/taatoo/www/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))</p>
    
    <p>5 /home/taatoo/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')</p>
    
    <p>6 /home/taatoo/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core in /home/taatoo/www/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 302</p>
  </blockquote>
  
  <p>Lines 301/302/303 are :</p>
  
  <pre><code>if (!extension_loaded('pdo_mysql')) {
      throw new Zend_Db_Adapter_Exception('pdo_mysql extension is not installed');
  }
  </code></pre>
  
  <p>Or, if I execute <code>print_r(get_loaded_extensions());</code> in /home/project/www/ or /home/project/www/lib/Varien/Db/Adapter/Pdo/ I correctly get the "pdo_mysql" extension. </p>
  
  <p>I also get <code>true</code> if I do <code>var_dump(extension_loaded('pdo_mysql'));</code> in this script. </p>
  
  <p>But <code>false</code> if I do the same things in /home/project/www/lib/Varien/Db/Adapter/Pdo/Mysql.php</p>