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

问题描述 投票:0回答:1

我更新了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

我已经检查过我的用户名和密码一千次了,而且还可以,我还审核了数据库和表的权限,所有内容都检出。

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

enter image description here

enter image description here

enter image description here

我没有足够的想法来解决此问题,将不胜感激,并且一如既往地感谢您的宝贵时间。]

我希望我能提供足够的信息,否则请告知我。

我更新了WAMP,更新后无法从数据库中检索任何数据。我收到以下错误:(!)警告:mysqli_connect():(HY000 / 1045):用户'cookieb1_root'@'...的访问被拒绝。

php mysql phpmyadmin wamp
1个回答
0
投票

已解决:我在db_key.php

© www.soinside.com 2019 - 2024. All rights reserved.