Warning: mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") in /home/violzpui/public_html/hifum/system/library/db/mysqli.php on line 7

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