CI_DB_mysql_driver::reconnect PHP Method

reconnect() public method

Keep / reestablish the db connection if no queries have been sent for a length of time exceeding the server's idle timeout
public reconnect ( ) : void
return void
    public function reconnect()
    {
        if (mysql_ping($this->conn_id) === FALSE) {
            $this->conn_id = FALSE;
        }
    }