Problem with connection to mysql database configured no more goes up

Asked

Viewed 49 times

0

I’m trying to upload a local system but it’s not connecting to the database. I’ve already made the settings. I’ll leave the error below if anyone can help me thank.

inserir a descrição da imagem aqui

here and the configuration in the database

inserir a descrição da imagem aqui

line 124 code

    // Connect to the database and set the connection ID
    $this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect();

    // No connection resource?  Throw an error
    if ( ! $this->conn_id)
    {
        log_message('error', 'Unable to connect to the database');

        if ($this->db_debug)
        {
            $this->display_error('db_unable_to_connect');
        }
        return FALSE;
    }
  • what’s on the 124 line of db_driver.php ?

  • this with that code Function initialize() { if (is_resource($this->conn_id) OR is_object($this->conn_id)) { Return TRUE; } // Connect to the database and set the Connection ID $this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect(); // No Connection Resource? Throw an error if ( ! $this->conn_id) { log_message('error', 'Unable to connect to the database'); if ($this->db_debug) { line --124--> $this->display_error('db_unable_to_connect'); } Return FALSE; }

  • [Edit] the question and put the code in it... outside the browser message, there is another error message ??

  • ok more see there please answering your other question not only of this error as per the photo

  • Which version of php vc uses?

  • system and 5.3 already easy php do not know

  • in easyphp 5.6.19

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.