Failing to connect to MySQL via ODBC/PHP
| From: | mweb | Date: | Wed, 28 Nov 2001 15:30:07 +0000 |
| Subject: | Failing to connect to MySQL via ODBC/PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75889@lists.php.net to get a copy of this message | ||
Hello,
I am testing a web page on my server (code and result of phpinfo attached).
In the browser window I get several errors like this:
Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver
specified, SQL state IM002 in SQLConnect in /home/marco/public_html/cgi-bin/default.php on line 11
What should I check/change/fix? Which config files/commands...
Should I recompile PHP (see phpinfo outout) , or may it just be a config issue?
Any help is appreciated,
mweb