サーバー接続に失敗しました。object(PDOException)#5 (8) {
["message":protected]=>
string(48) "SQLSTATE[HY000] [2002] No such file or directory"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(2002)
["file":protected]=>
string(28) "/var/www/html/app/Lib/DB.php"
["line":protected]=>
int(20)
["trace":"Exception":private]=>
array(3) {
[0]=>
array(5) {
["file"]=>
string(28) "/var/www/html/app/Lib/DB.php"
["line"]=>
int(20)
["function"]=>
string(11) "__construct"
["class"]=>
string(3) "PDO"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(53) "/var/www/html/app/Domain/User/Service/UserService.php"
["line"]=>
int(24)
["function"]=>
string(8) "createDB"
["class"]=>
string(10) "App\Lib\DB"
["type"]=>
string(2) "::"
}
[2]=>
array(5) {
["file"]=>
string(23) "/var/www/html/index.php"
["line"]=>
int(9)
["function"]=>
string(11) "__construct"
["class"]=>
string(35) "App\Domain\User\Service\UserService"
["type"]=>
string(2) "->"
}
}
["previous":"Exception":private]=>
NULL
["errorInfo"]=>
array(3) {
[0]=>
string(5) "HY000"
[1]=>
int(2002)
[2]=>
string(25) "No such file or directory"
}
}
mysql:dbname=keizaidb;host=localhost;port=3306;charset=utf8;
10.0.16.15