Error connecting to database - check your database connection properties in constants.php file

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
PHP Version : 7.2.24-0ubuntu0.18.04.15