Problem with connecting to an Access 97 db on Linux with Debian7

I have an Acces 97 database working on a Windows 7 PC where I can get data from it by XAMPP with php_pdo_odbc.

I want to have this database on a QNAP NAS with Linux arm5, on Debian9 with a working Apache2 and PHP7, but I cannot get it to work. I now use:

$db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; Dbq=starchef.mdb;Uid=; Pwd=;");

where the PHP-file and the Database file are in the same directory /var/www/html.
What am I doing wrong?

0 answers