multiple database connectivity getting errors - 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: multiple database connectivity getting errors (/showthread.php?tid=22187) |
multiple database connectivity getting errors - El Forum - 09-01-2009 [eluser]ranjitbd[/eluser] Code: //multiple database connection multiple database connectivity getting errors - El Forum - 09-01-2009 [eluser]elvix[/eluser] you have two problems: first change $db1 to $db and rename your 2nd db to something that's not 'default' -- $db['somethingelse']. Second, set pconnect on your second db to false. You cannot have two db connections with persistent connections. You shouldn't see a noticeable performance hit. |