I want to do PHP using Bitnami. By the way, I'm trying to connect the DB
Access denied for user 'root'@'localhost' (using password: YES)
This is the only error I see.
cmd and phpMyAdmin connect DB The password is correct.
What should I do??
<?php
$conn=new mysqli('localhost', 'root', '"db');
if($conn->connect_error) {
print $conn->connect_error;
}
?>
$mysqli = new mysqli("127.0.0.1", "user", "password", "database", 3306);
In this way, instead of 'localhost'
, try specifying the loopback IP, database name, and port.
© 2024 OneMinuteCode. All rights reserved.