It is possible, but you will need to install a few tools onto your server. I'm assuming here that you are using PHP as the programming language.
I'll highlight the steps needed to setup the DSN connection, so you can port the scripts with minimal changes. Note that the driver support is not the same as in Windows, so some advanced functionality might be unavilable. Check the webpages of the drivers for more information.
After you have setup PHP (with unixodbc support) and Apache, download and install for your distribution :
unixodbc
mdbtools (and the mdbtools ODBC driver)
Configure unixodbc by adding mdbtools to it. To do this, create a blank file :
Code:
[MDBToolsODBC]
Description = MDB Tools ODBC drivers
Driver = /path/to/libmdbodbc.so.0
Setup =
FileUsage = 1
CPTimeout =
CPReuse =
Install the driver into unixodbc (using the file above) :
Code:
odbcinst -i -d -f configuration.file
Setup the DSN in /etc/odbc.ini :
Code:
[DNS-NAME]
Description = Microsoft Access Database
Driver = MDBToolsODBC
Database = /path/to/file.mdb
Servername = localhost
UserName =
Password =
port = 5432
That's it. Now you can test the connection :
PHP Code:
$conn = odbc_connect("DNS-NAME","","");
Hope this helps, and welcome to WHT
