Internally everyone is working, migrations
, tinker
, sqlite3
, but in the server application it always queries mysql
instead of sqlite
for all operations, ie it is using Connector.php
instead of% with%
Is there another type of configuration to connect with SQLiteConnector.php
?
.env
DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=./database/database.sqlite
#DB_USERNAME=homestead
#DB_PASSWORD=secret
database.php
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
Error
QueryException SQLSTATE [HY000] [2002] No connection could be made because the target machine actively refused them.