Reputation: 49
I have sqlite database file with this feature:
I have database.sqllite
file
This database encrypted with key (I have the key)
I work with Laravel 5.4
How can I decrypt and connect to this database file?
this is my code
\Config::set('database.connections.sqlite.database', $sqlitePath);
/**
* create a connection to SQLite Database
*/
$databasae = \DB::connection('sqlite');
and I got this error
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database
Upvotes: 1
Views: 458
Reputation: 49
Unfortunately, php or laravel had nothing to do with this,and I handel this problem with command line. for more informaion read this
Upvotes: 1