Connection with Sqlite returns Unsupported driver [C]

Asked

Viewed 43 times

-2

I’m trying to use Sqlite in a project but when performing any command with Sqlite returns:

Unsupported driver [C].

this is my configuration on database php.

    'sqlite' => [
        'driver' => 'sqlite',
        'url' => database_path('database.sqlite'),
        'database' => database_path('database.sqlite'),
        'prefix' => '',
        'foreign_key_constraints' => true,
    ],
  • Activated in the php.ini the length of the sqlite?

  • Yes I enabled sqlite in php.ini

  • Active sqlite with PDO or without PDO?

  • I activated both of them

  • You reset the Apache?

  • i use php Artisan serves direct. do not use apache

Show 1 more comment

1 answer

0

I fixed it. The problem is that if the database field is with database_path('database.sqlite') the url field must be empty.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.