I am using Laravel latest version: 3.2.1.
When I run this on the terminal:
php artisan migration:install
I have this error:
could not find driver
I did some searches on Google and the Laravel forum, nothing.
EDIT
I activated the extension, and this is what I have in phpinfo()
--with-iconv' '--with-pdo-mysql=mysqlnd' '--with-pdo-pgsql=/opt/lampp/postgresql' '--with-pdo
Looks like my pdo is installed.
Here is a picture of my phpinfo()
EDIT 2 I did a little test:
<?php try { $dbh = new PDO("mysql:host=localhost;dbname=jjimobiliaria", "root", ""); foreach($dbh->query('SELECT * from pdo_test') as $row) { print_r($row); } $dbh = null; } catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br/>"; die(); }
And the return:
Array ( [id] => 1 [0] => 1 [test_column] => TESTING!!! [1] => TESTING!!! )
So my PDO is working fine
Gerep source share