-2
我想配置mysql xampp密码为无密码。我打开my.ini,我看到以下行:在没有密码的xampp中连接到mysql
# password = password
我我不使用密码我应该输入什么?
这就是我得到的错误,当我试图通过PHP连接到MySQL:
mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using
password: YES) in C:\xampp\htdocs\spikes\functions.php on line 53
Failed to connect to MySQL: Access denied for user 'root'@'localhost' (using password: YES)
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in
C:\xampp\htdocs\spikes\home.php on line 6
这不是xampp的问题。检查你的php文件,你提到了mysql的用户名和密码。 –