Page 1 of 1

Linux ODBC Apache issue

Posted: Tue Feb 19, 2008 11:35 am
by Karlos
Hi,
I've been trying to speed up some perl code by converting to purebasic and have got a strange ODBC issue.

When running as root or a normal linux user the program works fine. When hooked into apache and run from a browser the code gives up :

[TCX][MyODBC]Unknown database 'MySQL-test'

The line is
database=opendatabase(#PB_Any,"MySQL-test","user","pass")

I have odbc.ini set in /etc and also as a thought I put .odbc.ini in /home/apache just in case

Any thoughts?
Thanks

Posted: Tue Feb 19, 2008 6:07 pm
by Karlos
oops - turns out the myodbc link drivers or somethign were out of date

cheers