As per my knowledge, if I connect MySQL, I have to close the connection immediately after executing the script otherwise it will stay opened.
My question is does codeigniter close the MySQL connection each time after executing the script? If not, how do I perform it ?
$this->db->close();very simple$db['default']['pconnect'] = FALSE;. Default value is true.