Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /opt/lampp/htdocs/classes/MySQLHandler.php on line 239

Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /opt/lampp/htdocs/classes/MySQLHandler.php on line 245
Database Offline
The database server appears to be offline.
 
The database server at 127.0.0.1 appears to be offline.
  1. Be sure the username and password to MySQL is the same as configured in includes/database-config.php
  2. Be aware that MySQL disables password authentication for root user upon installation or update in some systesms. This may happen even for a minor update. Please check the username and password to MySQL is the same as configured in includes/database-config.php
  3. Try to setup/reset the DB to see if that helps
  4. A video is available to help reset MySQL root password
  5. The commands vary by system and version, but may be something similar to the following
    • mysql -u root
    • use mysql;
    • update user set authentication_string=PASSWORD('mutillidae') where user='root';
    • update user set plugin='mysql_native_password' where user='root';
    • flush privileges;
    • quit;
  6. Check the error message below for more hints
  7. If you think this message is a false-positive, you can opt-out of these warnings below
Error Message
Error: Failed to connect to MySQL database. Error connecting to MySQL database on host '127.0.0.1' with username 'root' and password 'mutillidae'. First, try to reset the database (ResetDB button on menu). Next, check that the database service is running and that the database username, password, database name, and database location are configured correctly. Note: File /mutillidae/classes/MySQLHandler.php contains the database configuration. Connection error: Access denied for user 'root'@'localhost' (using password: YES)
 
Opt out of database warnings
You can opt out of database connection warnings for the remainder of this session