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

SQLSTATE[HY000] [2002] No such file or directory
PHP Version : 7.2.24-0ubuntu0.18.04.15