更新 WAMP 后尝试访问数据库时出错

Error while trying to access database after updating WAMP

我更新了 WAMP,更新后我无法从我的数据库中检索任何数据。

我收到以下错误:

( ! ) Warning: mysqli_connect(): (HY000/1045): Access denied for user 'cookieb1_root'@'localhost' (using password: YES) in C:\wamp64\www\testground\php\fetch_lista_productos_compra.php on line 5
Call Stack
#TimeMemoryFunctionLocation
10.0000407392{main}(  )...\testground.php:0
20.0000408352require( 'C:\wamp64\www\testground\php\fetch_lista_productos_compra.php' )...\testground.php:163
30.0000408352mysqli_connect
(  )...\fetch_lista_productos_compra.php:5

( ! ) Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in C:\wamp64\www\testground\php\fetch_lista_productos_compra.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0000407392{main}(  )...\testground.php:0
20.0000408352require( 'C:\wamp64\www\testground\php\fetch_lista_productos_compra.php' )...\testground.php:163
30.0150409368mysqli_query
(  )...\fetch_lista_productos_compra.php:7

( ! ) Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\wamp64\www\testground\php\fetch_lista_productos_compra.php on line 9
Call Stack
#TimeMemoryFunctionLocation
10.0000407392{main}(  )...\testground.php:0
20.0000408352require( 'C:\wamp64\www\testground\php\fetch_lista_productos_compra.php' )...\testground.php:163
30.0150409368mysqli_fetch_assoc
(  )...\fetch_lista_productos_compra.php:9

我已经检查了我的用户名和密码一千次,它们没问题,我还审计了数据库和 table 权限,一切都检查过了。

这些是来自 phpmyadmin 的一些捕获:

我 运行 没有解决这个问题的想法,我们将不胜感激任何形式的帮助,并一如既往地感谢您抽出宝贵时间。

我希望我提供了足够的信息,如果没有请告诉我。

已解决:我在 db_key.php 文件中添加了 mySQL 的端口号 $servername = "localhost:3308"