Turn off "You have specified an invalid database connection group." - 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: Turn off "You have specified an invalid database connection group." (/showthread.php?tid=27621) |
Turn off "You have specified an invalid database connection group." - El Forum - 02-16-2010 [eluser]huzzel[/eluser] How could i do that ? thanks :-) Turn off "You have specified an invalid database connection group." - El Forum - 02-16-2010 [eluser]summery[/eluser] The best way might be to specify a valid database connection group. Read about establishing database connections in CI. Two basic things to check for in your config/database file: - is $active_group variable set to a valid array of config variables? Default, perhaps? - are your database config variables correct - hostname, db name, etc? Good luck! Turn off "You have specified an invalid database connection group." - El Forum - 02-16-2010 [eluser]mikelbring[/eluser] Or don't autoload the database? Turn off "You have specified an invalid database connection group." - El Forum - 02-17-2010 [eluser]huzzel[/eluser] Thanks for your replies, i tried to connect to different databases in a controller so i created a object for each database like this $this->active_db_1 $this->active_db_2 $this->active_db_3 If one of the database server goes offline the script dies... Maybe i have to check first db_connect() before i load each active_db well the problem is here Code: function &DB;($params = '', $active_record_override = FALSE) So i hav to patch the controller DB. I created a helper to solute this thanks |