SQLite SQLSTATE[HY000] [14] unable to open database

Alles, was PHP betrifft, kann hier besprochen werden.

SQLite SQLSTATE[HY000] [14] unable to open database

Postby LuisK » 06. June 2016 15:08

Hallo,
ich will über PHP eine SQLite-DB anlegen und bearbeiten.
ich habe folgende Varianten probiert:
$db_SQLite = new SQLite3($in_Ziel_DB_SQLite);
Fehlermeldung:
Class 'SQLite3' not found in ..

$db_SQLite = new PDO('sqlite:'.$in_Ziel_DB_SQLite );
Fehlermeldung:
Uncaught PDOException: SQLSTATE[HY000] [14] unable to open database file in
-------------------------------------------------------------------------------------------------
https://community.apachefriends.org/f/viewtopic.php?f=16&t=70580&p=241751&hilit=SQLite#p241751

XAMPP for Windows 7.0.6 PHP Version 7.0.6

phpinfo.php:
PDO Driver for SQLite 3.x enabled
SQLite Library 3.8.10.2

php.ini:
extension=php_pdo_sqlite.dll
extension=php_sqlite3.dll

Was muss ich noch bei PHP einstellen ?
Danke
Luis
LuisK
 
Posts: 14
Joined: 28. February 2016 07:54
Operating System: Windows 7

Re: SQLite SQLSTATE[HY000] [14] unable to open database

Postby LuisK » 06. June 2016 18:28

Lösung:
php.ini:
extension=php_pdo_sqlite.dll // freigeben
extension=php_pdo.dll // ergänzen
LuisK
 
Posts: 14
Joined: 28. February 2016 07:54
Operating System: Windows 7


Return to PHP

Who is online

Users browsing this forum: No registered users and 2 guests