title: php artisan migrate : [PDOException] could not find driver
body: <p>My system config is <strong>Ubuntu 14.04 + XAMPP + Laravel 4</strong> installed </p>
  
  <p><strong>mysql driver is configured</strong>  on  <em>/opt/lampp/htdocs/larva/app/config/database.php</em></p>
  
  <pre><code>'mysql' =&gt; array(
              'driver'    =&gt; 'mysql',
              'host'      =&gt; 'localhost',
              'database'  =&gt; 'db_larva',
              'username'  =&gt; 'root',
              'password'  =&gt; '*****',
              'charset'   =&gt; 'utf8',
              'collation' =&gt; 'utf8_unicode_ci',
              'prefix'    =&gt; 'tbl_',
          ),
  </code></pre>
  
  <h3>PDO extension is enabled on <em>/opt/lampp/etc/php.ini</em></h3>
  
  <pre><code>extension=php_pdo_mysql.dll
  </code></pre>
  
  <p>create table using</p>
  
  <pre><code>php artisan migrate:make create_users --create=users 
  </code></pre>
  
  <p>which generate <a href="http://pastebin.com/PUK3kaVj" rel="noreferrer">2014_10_02_114459_create_users.php </a></p>
  
  <pre><code>php artisan migrate:make create_orders --create=orders
  </code></pre>
  
  <p>create <a href="http://pastebin.com/Uw405R2B" rel="noreferrer">2014_10_02_054103_create_orders.php</a></p>
  
  <p>now on terminal what I did</p>
  
  <pre><code>cd /opt/lampp/htdocs/larva/ 
  php artisan migrate
  </code></pre>
  
  <p>it gives error  </p>
  
  <blockquote>
    <p><strong>[PDOException]  could not find driver</strong> </p>
  </blockquote>
  
  <p>when i run </p>
  
  <pre><code>php artisan migrate --database=db_larva
  </code></pre>
  
  <p>it again gives other error</p>
  
  <blockquote>
    <p><strong>[InvalidArgumentException]<br>
      Database [db_larva] not configured.</strong></p>
  </blockquote>
  
  <p>Please guide me what I am doing wrong?</p>
  
  <p>My guess: </p>
  
  <ul>
  <li><p>Is location correct? do run  <code>php artisan</code> inside the root folder?   </p></li>
  <li><p>Default table structure inside <code>function up()</code> need to write some more code, may be db connection settings</p></li>
  <li>difference between <code>php artisan migrate:make create_users --create=users</code> and 
  <code>php artisan migrate:make create_users --create --table=users</code></li>
  <li>I have to configure database settings somewhere else too.</li>
  <li>table prefix can be problematic.</li>
  <li><p>I haven't write single line to connect database, anywhere in the code yet. where to write the connection sting in code, or that is a later stage?</p></li>
  <li><p><code>php --ini</code> gives different path of php ini? </p>
  
  <blockquote>
  <pre><code>Configuration File (php.ini) Path: /etc/php5/cli
  Loaded Configuration File:         /etc/php5/cli/php.ini
  Scan for additional .ini files in: /etc/php5/cli/conf.d
  Additional .ini files parsed:      /etc/php5/cli/conf.d/05-opcache.ini,
  /etc/php5/cli/conf.d/10-pdo.ini,
  /etc/php5/cli/conf.d/20-json.ini,
  /etc/php5/cli/conf.d/20-mcrypt.ini,
  /etc/php5/cli/conf.d/20-readline.ini,
  /etc/php5/cli/conf.d/20-xdebug.ini
  </code></pre>
  </blockquote></li>
  </ul>