Problem Multiples Connection Database |
[eluser]Mellkior[/eluser]
Hi, I have 3 databases in my work. 2 Mssql and 1 mysql Not ask why the 3.... hehehe. database.php Code: $active_group = "default"; On system/codeigniter/Codeigniter.php Code: $CI->db->close(); close only my default database. Others 2 connections stay opened. How can i close all my connections in database? Thanks!
[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...cting.html Quote:When you connect this way, you will use your object name to issue commands rather than the syntax used throughout this guide. In other words, rather than issuing commands with:
[eluser]Mellkior[/eluser]
But how close the 3 databases on Codeigniter.php? Try Code: $CI->db->close(); // Works, this close default database only.
[eluser]danmontgomery[/eluser]
That depends on how you open them Code: $db1 = $this->load->database('default', TRUE);
[eluser]Mellkior[/eluser]
Solved Change in database.php Code: $db['default']['pconnect'] = TRUE; For Code: $db['default']['pconnect'] = FALSE; Thanks! |
Welcome Guest, Not a member yet? Register Sign In |