When I run php artisan migrate
command I get:
[PDOException] could not find driver.
I made my default database as sqlite and checked whether there are pdo drivers for sqlite using php -i
command. I could not understand my problem.
Your system has missing php
SQLite
installation.
Install it by using:
sudo apt-get install php7.0-sqlite
Then restart your apache server
sudo /opt/lampp/lampp restart
You need to install PDO on your server, or you might have to just comment out the following line in your php.ini
file.
;extension=pdo_sqlite
(remove the ;
character)
You should then restart your server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With