Warning: mysqli_connect(): (HY000/2002): Connection refused in /opt/lampp/htdocs/srgdb/config.php on line 11

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /opt/lampp/htdocs/srgdb/config.php:13 Stack trace: #0 /opt/lampp/htdocs/srgdb/header.php(9): require_once() #1 /opt/lampp/htdocs/srgdb/srgdb.php(10): require_once('/opt/lampp/htdo...') #2 {main} thrown in /opt/lampp/htdocs/srgdb/config.php on line 13