2 - mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 24 - 2018-11-18 01:23:32
2 - mysqli_error() expects parameter 1 to be mysqli, boolean given - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 26 - 2018-11-18 01:23:32
2 - mysqli_errno() expects parameter 1 to be mysqli, boolean given - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 26 - 2018-11-18 01:23:32
Tipo: DbException
Arquivo: /home/luiz/www/html/genesis/1.0/inc/database.class.php
Linha: 26
Código: 0
Mensagem:
Erro: Ops! Ocorreu um erro inesperado, desculpe o transtorno.
Caminho: #0 /home/luiz/www/html/genesis/1.0/inc/database.class.php(15): GDbMysql->connect() #1 /home/luiz/www/html/class/paginaDao.php(22): GDbMysql->__construct() #2 /home/luiz/www/html/inc/class/header.class.php(208): PaginaDao->select('WHERE pag_cha_m...') #3 /home/luiz/www/html/inc/class/header.class.php(167): GHeader->loadMenuPrincipal(false) #4 /var/www/html/index.php(7): GHeader->show() #5 /var/www/html/redirect.php(497): include_once('/var/www/html/i...') #6 /var/www/html/redirect.php(24): ifIncludeOnce('index.php') #7 {main}
Query:
2 - mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 24 - 2018-11-18 01:23:32
2 - mysqli_error() expects parameter 1 to be mysqli, boolean given - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 26 - 2018-11-18 01:23:32
2 - mysqli_errno() expects parameter 1 to be mysqli, boolean given - /home/luiz/www/html/genesis/1.0/inc/database.class.php - 26 - 2018-11-18 01:23:32

Fatal error: Uncaught exception 'GDbException' in /home/luiz/www/html/genesis/1.0/inc/database.class.php:26 Stack trace: #0 /home/luiz/www/html/genesis/1.0/inc/database.class.php(15): GDbMysql->connect() #1 /var/www/html/index.php(16): GDbMysql->__construct() #2 /var/www/html/redirect.php(497): include_once('/var/www/html/i...') #3 /var/www/html/redirect.php(24): ifIncludeOnce('index.php') #4 {main} thrown in /home/luiz/www/html/genesis/1.0/inc/database.class.php on line 26