Warning: PDO::__construct() [pdo.--construct]: [2002] 由于目标计算机积极拒绝,无法连接。 (trying to connect via tcp://localhost:3306) in D:\wgzhan.com\www\news\database.php on line 13

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] 由于目标计算机积极拒绝,无法连接。 ' in D:\wgzhan.com\www\news\database.php:13 Stack trace: #0 D:\wgzhan.com\www\news\database.php(13): PDO->__construct('mysql:host=loca...', 'root', 'vipseo', Array) #1 D:\wgzhan.com\www\news\function.php(7): database->__construct('mysql:host=loca...', 'root', 'vipseo') #2 D:\wgzhan.com\www\news\index.php(2): include('D:\wgzhan.com\w...') #3 {main} thrown in D:\wgzhan.com\www\news\database.php on line 13