Welcome Guest, Not a member yet? Register   Sign In
How to see MySQL activities on profiler from all active MySQL connections?
#2

[eluser]WanWizard[/eluser]
If you create a second connection and store it in a local variable, the profiler won't be able to pick it up.

Use:
Code:
$CI =& get_instance();
$CI->db2 = $this->load->database($config, TRUE);
// make it known to our controller
$this->db2 =& $CI->db2;

instead of:
Code:
$db2 = $this->load->database($config, TRUE);


Messages In This Thread
How to see MySQL activities on profiler from all active MySQL connections? - by El Forum - 08-02-2010, 04:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB