我想将mysql xampp密码配置为无密码。我打开了 my.ini,我看到了以下行:
# password = password
II不使用密码我应该输入什么?
这就是我尝试通过 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