Warning: mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/redhous1/public_html/system/library/db/mysqli.php on line 7

Fatal error: Uncaught Error: Call to undefined function DB\mysql_error() in /home/redhous1/public_html/system/library/db/mysqli.php:10 Stack trace: #0 /home/redhous1/public_html/system/library/db.php(9): DB\MySQLi->__construct('localhost', 'redhous1_root', 'a12345', 'redhous1_cart', '3306') #1 /home/redhous1/public_html/system/framework.php(25): DB->__construct('mysqli', 'localhost', 'redhous1_root', 'a12345', 'redhous1_cart', '3306') #2 /home/redhous1/public_html/index.php(22): require_once('/home/redhous1/...') #3 {main} thrown in /home/redhous1/public_html/system/library/db/mysqli.php on line 10