Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite unable to open database file: Laravel + Windows

I'm try use a sqlite database in my laravel project, in local environment for dev (Windows 8.1 with AMMPS), but when I try run a migrate:instal command, this error apeear:

[PDOException] SQLSTATE[HY000] [14] unable to open database file

My database config file (app/config/local/database.php):

<?php

return array(
    'default' => 'sqlite',

    'connections' => array(
        'sqlite' => array(
            'driver'   => 'sqlite',
            'database' => __DIR__ . '\..\..\database\production.sqlite',
            'prefix'   => '',
        ),
    ),
);
like image 798
Miguel Borges Avatar asked May 21 '15 19:05

Miguel Borges


1 Answers

try to remove the DB_DATABASE="yourdatabase" variable in your .env file

like image 123
Said Bouigherdaine Avatar answered Oct 09 '22 03:10

Said Bouigherdaine