Warning: mysqli_connect(): (HY000/2002): No route to host in /var/www/vhosts/oms.com.tr/httpdocs/procedures/database.php on line 21

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /var/www/vhosts/oms.com.tr/httpdocs/procedures/database.php:24 Stack trace: #0 /var/www/vhosts/oms.com.tr/httpdocs/procedures/database.php(12): MySQLDatabase->open_connection() #1 /var/www/vhosts/oms.com.tr/httpdocs/procedures/database.php(105): MySQLDatabase->__construct() #2 /var/www/vhosts/oms.com.tr/httpdocs/procedures/database_object.php(2): require_once('/var/www/vhosts...') #3 /var/www/vhosts/oms.com.tr/httpdocs/procedures/initialize.php(21): require_once('/var/www/vhosts...') #4 /var/www/vhosts/oms.com.tr/httpdocs/content/server-status.php(1): require_once('/var/www/vhosts...') #5 /var/www/vhosts/oms.com.tr/httpdocs/loader.php(60): require('/var/www/vhosts...') #6 {main} thrown in /var/www/vhosts/oms.com.tr/httpdocs/procedures/database.php on line 24