Listado de productos 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\\\listado-de-productos.php(53): conectarConLocal() #2 C:\Inetpub\vhosts\\\listado-de-productos.php(13): buscarCategoriasProductosWeb() #3 {main} thrown in C:\Inetpub\vhosts\\\include\funciones.php on line 149