Warning: mysqli_connect(): (HY000/2002): No such file or directory in /var/www/html/cpp/laoxiaketang.com/db.php on line 40

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /var/www/html/cpp/laoxiaketang.com/db.php:41 Stack trace: #0 /var/www/html/cpp/laoxiaketang.com/db.php(46): ConnetMysql() #1 /var/www/html/cpp/laoxiaketang.com/db.php(296): ExecSql('select * from t...') #2 /var/www/html/cpp/laoxiaketang.com/db.php(307): GetTeachers('where id=1') #3 /var/www/html/cpp/laoxiaketang.com/teacher.php(4): GetTeacher('1') #4 {main} thrown in /var/www/html/cpp/laoxiaketang.com/db.php on line 41