php - Laravel 5 PDOException Could Not Find Driver -


i have problem using laravel 5. when run "php aritsan migrate", got error

************************************** *     application in production!     * **************************************  wish run command? [y/n] y  [pdoexception] not find driver 

i run application, when database connection needed, got error

pdoexception in connector.php line 55: not find driver in connector.php line 55 @ pdo->__construct('mysql:host=localhost;dbname=mydb', 'root', '', array('0', '2', '0', false, false)) in connector.php line 55 @ connector->createconnection('mysql:host=localhost;dbname=mydb', array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'mydb', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'name' => 'mysql'), array('0', '2', '0', false, false)) in mysqlconnector.php line 22 

how fix it?

you should install pdo on server. edit php.ini (look @ phpinfo(), "loaded configuration file" line, find php.ini file path). find , uncomment following line (remove ; character):

;extension=pdo_mysql.so 

then, restart apache server. more information, please read documentation.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -