![]() |
Database connection help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Database connection help (/showthread.php?tid=17416) |
Database connection help - El Forum - 04-04-2009 [eluser]Max-B[/eluser] Hello. I'm a new CI user. I want to use it in a couple of project I have to do in this day. A problem.... I HAVE TO USE FIREBIRD for this. I try the driver found in the forum and ODBC connection without success. Can someone help me? ODBC Entry DSN Name: Blog Database C:\BLOG.FDB Clien DLL C:\Programmi\Firebird\Firebird_2_0\bin\fbclient.dll User: SYSDBA Password: masterkey Connection TEST Succesfull This is my database.php config... $active_group = "default"; $active_record = TRUE; $db['default']['hostname'] = "localhost"; $db['default']['username'] = ""; $db['default']['password'] = ""; $db['default']['database'] = "Blog"; $db['default']['dbdriver'] = "odbc"; $db['default']['dbprefix'] = ""; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ""; $db['default']['char_set'] = "utf8"; $db['default']['dbcollat'] = "utf8_general_ci"; What's wrong? Thanks all in advance. Database connection help - El Forum - 04-04-2009 [eluser]TheFuzzy0ne[/eluser] What's the problem? Are you getting some kind of error? Have you checked your log file? Database connection help - El Forum - 04-04-2009 [eluser]Max-B[/eluser] The error: An Error Was Encountered Unable to connect to your database server using the provided settings... In my try with the ibase driver I go over this but give me problem with the autoload.... Database connection help - El Forum - 05-22-2009 [eluser]fMertins[/eluser] Hi, instead of $db[‘default’][‘hostname’] = “localhost”; try to use: $db[‘default’][‘hostname’] = “Blog”; And I'm afraid you have to inform user + password files... |