title: PDO Exception ZEND Framework 2
body: <p>In my ZF2 project made on ZendServer CE, in file global.php I have this:</p>
  
  <pre><code>return array(
    'db'=&gt; array(
        'driver' =&gt; 'Pdo',
        'dns' =&gt; 'mysql:dbname=test; host=localhost',
        'username' =&gt; '***',
        'password' =&gt; '***',
        'driver_options' =&gt; array(
            PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES \'UTF8\''
        ),
    ),
      'service_manager' =&gt; array(
          'factories' =&gt; array(
              'Zend\Db\Adapter\Adapter' =&gt;
                  'Zend\Db\Adapter\AdapterServiceFactory',
          ),
      ),
  );
  </code></pre>
  
  <p>but when I try to use the db connection I have this error:</p>
  
  <pre><code>Zend\Db\Adapter\Exception\RuntimeException
  </code></pre>
  
  <p>File:</p>
  
  <pre><code>/var/www/ProvaProgetto/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Connection.php:289
  </code></pre>
  
  <p>Message:</p>
  
  <pre><code>Connect Error: could not find driver
  </code></pre>
  
  <p>I tried to check if the pdo extension was enable with 
  <code>php -m | grep -i pdo</code>
  and it returns</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library 
  </code></pre>
  
  <p><code>'/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PDO</code></p>
  
  <p>How can I solve this problem?</p>