Warning (2): mysqli::mysqli() [http://php.net/mysqli.mysqli]: [2002] Connection refused (trying to connect via unix:///var/lib/mysql/mysql.sock) [APP/config/routes.php, line 44]Code |
Context
// Kết nối cơ sở dữ liệu sử dụng thông số cấu hình ở trên
$connection = new mysqli($default['host'], $default['login'], $default['password'], $default['database']);
$fromUrl = "sitemap.xml"
$params = array(
"form" => array()
)
$namedExpressions = array(
"Action" => "index|show|add|create|edit|update|remove|del|delete|view|item",
"Year" => "[12][0-9]{3}",
"Month" => "0[1-9]|1[012]",
"Day" => "0[1-9]|[12][0-9]|3[01]",
"ID" => "[0-9]+",
"UUID" => "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
)
$Action = "index|show|add|create|edit|update|remove|del|delete|view|item"
$Year = "[12][0-9]{3}"
$Month = "0[1-9]|1[012]"
$Day = "0[1-9]|[12][0-9]|3[01]"
$ID = "[0-9]+"
$UUID = "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
$default = array(
"driver" => "mysql",
"persistent" => false,
"host" => "*****",
"login" => "*****",
"password" => "*****",
"database" => "*****",
"prefix" => "*****",
"encoding" => "utf8"
)
mysqli::mysqli() - [internal], line ??
include - APP/config/routes.php, line 44
Dispatcher::parseParams() - CORE/cake/dispatcher.php, line 266
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 109
[main] - APP/webroot/index.php, line 80
Warning (2): mysqli::mysqli() [http://php.net/mysqli.mysqli]: (HY000/2002): Connection refused [APP/config/routes.php, line 44]Code |
Context
// Kết nối cơ sở dữ liệu sử dụng thông số cấu hình ở trên
$connection = new mysqli($default['host'], $default['login'], $default['password'], $default['database']);
$fromUrl = "sitemap.xml"
$params = array(
"form" => array()
)
$namedExpressions = array(
"Action" => "index|show|add|create|edit|update|remove|del|delete|view|item",
"Year" => "[12][0-9]{3}",
"Month" => "0[1-9]|1[012]",
"Day" => "0[1-9]|[12][0-9]|3[01]",
"ID" => "[0-9]+",
"UUID" => "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
)
$Action = "index|show|add|create|edit|update|remove|del|delete|view|item"
$Year = "[12][0-9]{3}"
$Month = "0[1-9]|1[012]"
$Day = "0[1-9]|[12][0-9]|3[01]"
$ID = "[0-9]+"
$UUID = "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
$default = array(
"driver" => "mysql",
"persistent" => false,
"host" => "*****",
"login" => "*****",
"password" => "*****",
"database" => "*****",
"prefix" => "*****",
"encoding" => "utf8"
)
mysqli::mysqli() - [internal], line ??
include - APP/config/routes.php, line 44
Dispatcher::parseParams() - CORE/cake/dispatcher.php, line 266
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 109
[main] - APP/webroot/index.php, line 80
Kết nối cơ sở dữ liệu thất bại: Connection refused