By connection, how do I change my DSN?
one of the cases in my connection class that opens file in access
case "fatura" :
$strHost = "";
$strUser = "";
$strPass = "";
$strBase = "";
$strType = "";
$strDSN = "odbc:DRIVER={Microsoft Access Driver (*.mdb)};charset=iso-8859-1; DBQ={$strArquivo}; Uid=; Pwd=;";
//$strDSN = "odbc:DRIVER=Driver{Easysoft ODBC-ACCESS};charset=iso-8859-1; DBQ={$strArquivo}; Uid=; Pwd=;";
break;
I tried to change the DSN to receive the Easysoft ODBC-ACCESS driver because what I researched in linux does not open odbc files, but in the first moment without success, what could it be ?? or what is missing
The message that displays is:
"RepositorioException: Nao foi possivel conectar ao banco de dados: SQLSTATE[01000] SQLDriverConnect: 0 [unixODBC][Driver Manager]Can't open lib 'Microsoft Access Driver (*.mdb)' : file not found","location":""}