6

I'm using Laravel on Ubuntu 17.4. When I type this command: php artisan migrate:refresh I get the following issue:

[Illuminate\Database\QueryException] could not find driver (SQL: select * from sqlite_master where type = 'table' and name = migrations)
[PDOException]
could not find driver

I tried to install sqlite driver by running sudo apt-get install php7.1-sqlite3 but I got the following issue:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.1-sqlite3
E: Couldn't find any package by glob 'php7.1-sqlite3'
E: Couldn't find any package by regex 'php7.1-sqlite3'.

Also my php version is: PHP 7.1.5-1+deb.sury.org~yakkety+2.

1
  • 1
    make sure that you've executed the apt-get update to update your dependencies. Commented Jun 5, 2017 at 9:15

1 Answer 1

19

Are you sure your Sqlite configurations have been set well? Because I had the same issue on my Ubuntu 17.04 and it was solved with

sudo apt-get install php7.1-sqlite3

Can I know how you configured your sqlite?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.