Warning: mysqli_connect(): (HY000/2002): No such file or directory in /var/www/html/mathpass/base/mysqli_update.php on line 14

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /var/www/html/mathpass/base/databaseManager.php:40 Stack trace: #0 /var/www/html/mathpass/base/baseForm.php(35): DatabaseManager->DatabaseManager() #1 /var/www/html/mathpass/base/baseForm.php(254): BaseForm->BaseForm() #2 /var/www/html/mathpass/register.php(2): include_once('/var/www/html/m...') #3 {main} thrown in /var/www/html/mathpass/base/databaseManager.php on line 40