1
我想使用PDO(PHP 7.1.1)打開加密的sqlite3數據庫。sqlite3 PDO錯誤
$db = new PDO('sqlite:mydb.sqlite','','password');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$results = $db->query('SELECT * from Table');
上面的代碼會引發以下異常:
Uncaught PDOException: SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database
是我的連接字符串是否正確? 是否可以使用PDO打開加密的sqlite3數據庫?
可能重複的[SQLite3數據庫加密 - 確定加密庫?](http://stackoverflow.com/questions/9514007/sqlite3-database-encryption-determining-encryption-library) – Augwa