登陆

怎么解决啊

错误页面:

Warning: PDO::__construct(): MySQL server has gone away in E:\xampp\htdocs\ceshi\mvc\model\Db3.php on line 74

Warning: PDO::__construct(): Error while reading greeting packet. PID=11512 in E:\xampp\htdocs\ceshi\mvc\model\Db3.php on line 74

Warning: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2006] MySQL server has gone away' in E:\xampp\htdocs\ceshi\mvc\model\Db3.php:74 Stack trace: #0 E:\xampp\htdocs\ceshi\mvc\model\Db3.php(74): PDO->__construct('mysql:host=127....', 'root', '') #1 E:\xampp\htdocs\ceshi\mvc\model\Db3.php(39): Db->connect() #2 E:\xampp\htdocs\ceshi\mvc\model\Db3.php(57): Db->__construct(Array) #3 E:\xampp\htdocs\ceshi\mvc\demo.php(11): Db::getInstance() #4 {main} thrown in E:\xampp\htdocs\ceshi\mvc\model\Db3.php on line 74

Fatal error: Maximum execution time of 30 seconds exceeded in E:\xampp\htdocs\ceshi\mvc\model\Db3.php on line 74

# PHP
什么铭浩什么铭浩45 天前125 次浏览

全部回复(2)我要回复

  • angryTom

    angryTom2019-08-05 17:41:05

    一直提示这个文件的74行,E:\xampp\htdocs\ceshi\mvc\model\Db3.php on line 74,

    你可以具体看一下这一行写的什么,还有可能就是php版本问题。

    回复
    0
  • ABC DMC - Lu Sen

    ABC DMC - Lu Sen2019-08-02 18:11:09

    没遇到过

    回复
    1
  • 取消回复发送