Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)' in C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43
Stack trace:
#0 C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'root', 'ydy1998', Array)
#1 C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOMySql\Driver.php(45): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'root', 'ydy1998', Array)
#2 C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'root', 'ydy1998', Array)
#3 C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(429): Doctrine\DBAL\Connection->connect()
#4 C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(389): Doctrine\DBAL\Connection-> in C:\phpStudy\WWW\weixin\edu\vendor2\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractMySQLDriver.php on line 103