Error: Database failed to connect(ed).
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution
object(PDOException)#4 (8) {
["message":protected]=>
string(115) "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(2002)
["file":protected]=>
string(26) "/app/require/functions.php"
["line":protected]=>
int(10)
["trace":"Exception":private]=>
array(4) {
[0]=>
array(6) {
["file"]=>
string(26) "/app/require/functions.php"
["line"]=>
int(10)
["function"]=>
string(11) "__construct"
["class"]=>
string(3) "PDO"
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
string(34) "mysql:host=mysql;dbname=ww_content"
[1]=>
string(6) "walden"
[2]=>
object(SensitiveParameterValue)#5 (0) {
}
}
}
[1]=>
array(4) {
["file"]=>
string(27) "/app/require/header.top.php"
["line"]=>
int(34)
["function"]=>
string(9) "connectDB"
["args"]=>
array(0) {
}
}
[2]=>
array(4) {
["file"]=>
string(23) "/app/require/header.php"
["line"]=>
int(4)
["args"]=>
array(1) {
[0]=>
string(27) "/app/require/header.top.php"
}
["function"]=>
string(12) "require_once"
}
[3]=>
array(4) {
["file"]=>
string(13) "/app/news.php"
["line"]=>
int(5)
["args"]=>
array(1) {
[0]=>
string(23) "/app/require/header.php"
}
["function"]=>
string(7) "require"
}
}
["previous":"Exception":private]=>
object(PDOException)#2 (8) {
["message":protected]=>
string(112) "PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(26) "/app/require/functions.php"
["line":protected]=>
int(10)
["trace":"Exception":private]=>
array(4) {
[0]=>
array(6) {
["file"]=>
string(26) "/app/require/functions.php"
["line"]=>
int(10)
["function"]=>
string(11) "__construct"
["class"]=>
string(3) "PDO"
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
string(34) "mysql:host=mysql;dbname=ww_content"
[1]=>
string(6) "walden"
[2]=>
object(SensitiveParameterValue)#3 (0) {
}
}
}
[1]=>
array(4) {
["file"]=>
string(27) "/app/require/header.top.php"
["line"]=>
int(34)
["function"]=>
string(9) "connectDB"
["args"]=>
array(0) {
}
}
[2]=>
array(4) {
["file"]=>
string(23) "/app/require/header.php"
["line"]=>
int(4)
["args"]=>
array(1) {
[0]=>
string(27) "/app/require/header.top.php"
}
["function"]=>
string(12) "require_once"
}
[3]=>
array(4) {
["file"]=>
string(13) "/app/news.php"
["line"]=>
int(5)
["args"]=>
array(1) {
[0]=>
string(23) "/app/require/header.php"
}
["function"]=>
string(7) "require"
}
}
["previous":"Exception":private]=>
NULL
["errorInfo"]=>
NULL
}
["errorInfo"]=>
array(3) {
[0]=>
string(5) "HY000"
[1]=>
int(2002)
[2]=>
string(92) "php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution"
}
}