Boa Tarde GUJ!! Meu PHP está dando uns problemas com o MySQL, pesquisei de manha até a tarde e nada de conseguir resolver, me ajudem pro favorrr !!!
Severity: Warning
Message: mysqli::real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers
Filename: mysqli/mysqli_driver.php
Line Number: 203
Backtrace:
File: C:\xampp\htdocs\AquaMax\application\models\Users_model.php
Line: 9
Function: database
File: C:\xampp\htdocs\AquaMax\application\controllers\Restrict.php
Line: 9
Function: model
File: C:\xampp\htdocs\AquaMax\index.php
Line: 315
Function: require_once
Severity: Warning
Message: mysqli::real_connect(): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers
Filename: mysqli/mysqli_driver.php
Line Number: 203
Backtrace:
File: C:\xampp\htdocs\AquaMax\application\models\Users_model.php
Line: 9
Function: database
File: C:\xampp\htdocs\AquaMax\application\controllers\Restrict.php
Line: 9
Function: model
File: C:\xampp\htdocs\AquaMax\index.php
Line: 315
Function: require_once
Alguem sabe qual pode ser o problema???
minha database.php
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'hidramax',
'password' => '(OCULTA POR SEGURANÇA)',
'database' => 'hidramax',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
meu Users_model
<?php
class Users_model extends CI_Model
{
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_user_data($user_login)
{
$this->db
->select("user_id, user_email, password_hash, user_full_name")
->from("users")
->where("user_Login", $user_login);
$result = $this->db->get();
if ($result->num_rows() > 0) {
return $result->row();
} else {
return null;
}
}
}