( ! ) Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'cook'@'localhost' (using password: YES) in /var/www/html/php7cookbook/source/Application/Database/Connection.php on line 33
( ! ) PDOException: SQLSTATE[HY000] [1045] Access denied for user 'cook'@'localhost' (using password: YES) in /var/www/html/php7cookbook/source/Application/Database/Connection.php on line 33
Call Stack
#TimeMemoryFunctionLocation
10.0005359896{main}( ).../chap_13_unit_test_vistor_ops.php:0
20.0006360384VisitorOps->__construct( $config = ['driver' => 'mysql', 'host' => 'localhost', 'dbname' => 'php7cookbook_test', 'user' => 'cook', 'password' => 'book', 'errmode' => 2] ).../chap_13_unit_test_vistor_ops.php:19
30.0006360440Application\Database\Connection->__construct( $config = ['driver' => 'mysql', 'host' => 'localhost', 'dbname' => 'php7cookbook_test', 'user' => 'cook', 'password' => 'book', 'errmode' => 2] ).../VisitorOps.php:15
40.0006361064__construct( $dsn = 'mysql:host=localhost;dbname=php7cookbook_test;user=cook;password=book;errmode=2', $username = 'cook', $password = '[Sensitive Parameter]', $options = [3 => 2] ).../Connection.php:33