-1

i receive this error when sending a request from angular project .

could not find driver (SQL: insert into employees (name, address, gender, department_id, education, experiance, updated_at, created_at) values (Karly Frost, Aliquam quo anim illum et nisi occaecat quam ad ut eveniet animi natus, f, 2, Eveniet in ab architecto neque ut molestiae magnam aliquip deleniti dolores quia hic est nobis tempora rerum, Laboriosam reprehenderit sint minima dolore quis dolorem perferendis, 2018-05-20 22:54:20, 2018-05-20 22:54:20))

but when i try to add new record using

php artisan tinker command and execute insert query using laravel eloquent it works very well

else i got this exception

notice : i use arch manjaro as my linux distributions

4

2 回答 2

0

You should install PDO on your server. Edit your php.ini (look at your phpinfo(), "Loaded Configuration File" line, to find the php.ini file path). Find and uncomment the following line (remove the ; character):

;extension=pdo_mysql.so

Then, restart your Apache server. For more information, please read http://php.net/manual/en/pdo.installation.php.

于 2018-05-22T10:15:41.577 回答
-1

Maybe there's a conflict between the PHP that is used by Apache and the PHP that is linked to the command line. check your PHP version and settings , i hope that this can help

thanks to apokryfos

and check this answer here

于 2018-05-21T00:59:25.623 回答