mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql';
mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql';
php catch mysqli_connect(): (HY000/1045): Access denied
$conn = mysqli_connect( '<server>', '<username>', '<password>', '<database-name>');
if (!$conn) {
// whatever processing you want to do upon error in connection
// like log error or send an email to admin
// I am just printing the error at the moment.
echo mysqli_connect_errno() . ":" . mysqli_connect_error();
exit;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us