when i run php artisan migrate command i got [PDOException] could not find driver .I made my default database as sqlite and checked whether there are pdo privers for sqlite using php -i command.I couldnot understand my problem.please help me.Thanks in advance.
相关问题
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Laravel 5.1 MethodNotAllowedHttpException on store
- SQL/SQL-LITE - Counting records after filtering
- What SQLite NuGet package do I need
- How to write the array into the sqlite database fo
If you are using sqlite and try to alter a table or drop a column you have to require
doctrine/dbal
, as suggested in the Laravel docs.Just do a
composer require doctrine/dbal
and retry your migration.I'm using Laravel 5.3 and I had to comment out some params in .env file.
Your system has missing
php
SQLite
installation.Install it by using:
Then restart your apache server
You need to install PDO on your server, or you might have to just comment out the following line in your
php.ini
file.(remove the
;
character)You should then restart your server.