Lista de precios Imanes

Warning: mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond in C:\Inetpub\vhosts\\\include\funciones.php on line 148

Fatal error: Uncaught TypeError: mysqli_set_charset(): Argument #1 ($mysql) must be of type mysqli, bool given in C:\Inetpub\vhosts\\\include\funciones.php:149 Stack trace: #0 C:\Inetpub\vhosts\\\include\funciones.php(149): mysqli_set_charset() #1 C:\Inetpub\vhosts\\\include\imanes-lista-de-precios.php(4): conectarConLocal() #2 C:\Inetpub\vhosts\\\lista-de-precios.php(10): include('...') #3 {main} thrown in C:\Inetpub\vhosts\\\include\funciones.php on line 149