CodeIgniter Forums
Filename: C:\xampp\htdocs\www\taller_c\system\database\DB_driver.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Filename: C:\xampp\htdocs\www\taller_c\system\database\DB_driver.php (/thread-47609.html)



Filename: C:\xampp\htdocs\www\taller_c\system\database\DB_driver.php - El Forum - 12-15-2011

[eluser]Unknown[/eluser]
Hola a todos:

Tengo un error con my conexión de la BDatos, por favor alguien que me oriente:

Unable to connect to your database server using the provided settings.

Filename: C:\xampp\htdocs\www\taller_c\system\database\DB_driver.php

Line Number: 124


Código:
// 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;
}

// ----------------------------------------------------------------

// Select the DB... assuming a database name is specified in the config file
if ($this->database != '')
{
if ( ! $this->db_select())
{
log_message('error', 'Unable to select database: '.$this->database);

if ($this->db_debug)
{
$this->display_error('db_unable_to_select', $this->database);
}
return FALSE;
}
else
{
// We've selected the DB. Now we set the character set
if ( ! $this->db_set_charset($this->char_set, $this->dbcollat))
{
return FALSE;
}

return TRUE;
}
}

return TRUE;
}