Warning: mysqli_connect(): (HY000/2002): Connection refused in /www/wwwroot/www.beima.net/function/conn.php on line 7

Fatal error: Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, bool given in /www/wwwroot/www.beima.net/function/conn.php:8 Stack trace: #0 /www/wwwroot/www.beima.net/function/conn.php(8): mysqli_query() #1 /www/wwwroot/www.beima.net/index.php(13): require('...') #2 {main} thrown in /www/wwwroot/www.beima.net/function/conn.php on line 8