dracozny Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2004 Posts: 86
|
Posted: Fri Dec 22, 2006 6:42 pm Post subject: odbc php connection fail(SOLVED) |
|
|
SOLVED after uninstalling iodbc I should have restarted apache2 instead of apache
trying to get my odbc connection to work and every time i get a fail from iodbc, but i do not have iodbc installed.
Code: |
# emerge --search iodbc
Searching...
[ Results for search key : iodbc ]
[ Applications found : 1 ]
* dev-db/libiodbc
Latest version available: 3.52.4
Latest version installed: [ Not Installed ]
Size of files: 705 kB
Homepage: http://www.iodbc.org/
Description: ODBC Interface for Linux.
License: LGPL-2 BSD
|
Code: |
Warning: odbc_connect() [function.odbc-connect]: SQL error: [iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded, SQL state IM002 in SQLConnect in /var/www/localhost/htdocs/openlimbas/admin/install/setup.php on line 70
Database-Connection failed ... !
|
if I use isql it finds my database connection just fine, the only odbc manager i have installed is unixODBC. so I am a little puzzled by the statement from php. _________________ I do not think there is any thrill that can go through the human heart like that felt by the inventor as he sees some creation of the brain unfolding to success... Such emotions make a man forget food, sleep, friends, love, everything.
-Nikola Tesla- |
|