I read all post as possible on the web (and not only in this wonderfull forum), I use SQLite from 5years ago now, and I still this "bug" (I don't known how named it) : SQLSTATE[HY000] [14]
- Yes my folder is writeable
- Yes ths sqlite file is wirteable
- Yes user AND group is set to www-data (server user)
- Yes I've setup sqlite and use it on the same server (so is NOT a config problem)
So what is going on?
ls :
user@host:/folder/where/is/the/site$ ls -lha db_folder/
total 36K
drwxrwxr-x 3 www-data www-data 4.0K May 10 06:15 .
drwxr-xr-x 3 www-data www-data 4.0K May 10 06:34 ..
-rwxrwxrwx 1 www-data www-data 36K May 10 05:22 db.sqlite
Thanks in advance.
EDIT: my php code even if it's not very specifique to me :
$db = new PDO('sqlite:dbname=./db_folder/db_file.sqlite', '', '', array(PDO::ATTR_PERSISTENT => true));
$articles = $db->query('SELECT * FROM articles ORDER BY name')->fetchAll();