mohammad hossein
mohammad hossein

Reputation: 49

connect to encrypted sqllite with key in laravel

I have sqlite database file with this feature:

  1. I have database.sqllite file

  2. This database encrypted with key (I have the key)

  3. 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

Answers (1)

mohammad hossein
mohammad hossein

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

Related Questions