Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /var/www/html/rant/old/index.php on line 2

Fatal error: Uncaught Error: mysqli object is already closed in /var/www/html/rant/old/index.php:4 Stack trace: #0 /var/www/html/rant/old/index.php(4): mysqli->query() #1 {main} thrown in /var/www/html/rant/old/index.php on line 4