php bug:Fatal error: Uncaught PDOException

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'codeslat_web'@'localhost' (using password: YES) in C:\xampp\htdocs\portfolio-master\functions.php:20 Stack trace: #0 C:\xampp\htdocs\portfolio-master\layouts\header.php(3): getPDO() #1 C:\xampp\htdocs\portfolio-master\index.php(12): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\portfolio-master\functions.php on line 20

这是因为mysql文件还没上传连接

解决办法

点击XAMPP的mysql的admin进入mysql数据库,新建new数据表。

猜你喜欢

转载自blog.csdn.net/weixin_40945354/article/details/108527563