Warning: mysqli::__construct(): (HY000/2002): No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\tweetnestMS\inc\class.db.php on line 48

Fatal error: Uncaught Exception: Could not connect to the DB: Could not connect to the DB: No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\tweetnestMS\inc\class.db.php:62 Stack trace: #0 C:\xampp\htdocs\tweetnestMS\inc\class.db.php(20): DB->connect() #1 C:\xampp\htdocs\tweetnestMS\inc\preheader.php(40): DB->__construct('mysql', Array) #2 C:\xampp\htdocs\tweetnestMS\day.php(5): require('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\tweetnestMS\inc\class.db.php on line 62