I m trying to use an Acces (MDB) database from a CakePHP app. On a Windows machine this works fine. On a Linux machine using Unixodbc this doesn t work at all. The error is as follows:
Warning (2): odbc_connect() [function.odbc-connect]: SQL error: [unixODBC][Driver anager]Data ource name not found, and no default driver specified, SQL state IM002 in SQLConnect [APP/vendors/adodb/drivers/adodb-odbc.inc.php, line 60]
The CakePHP datasource definition is:
$default = array(
driver => adodb ,
connect => access ,
host => "Driver=[MDBODBC]; Dbq=".$filePath.";Uid=Admin;Pwd=;}",
login => Admin ,
password => ,
database =>
);
What s wrong with this configuration?