[2002] PDOException in Connection.php line 295

在处理恶意报名问题后更新了虚拟主机,导致网站无法访问。起初怀疑是数据库连接问题,尝试更新数据库和服务器设置,但持续报错。最终发现默认首页被改变为index.htm,改为index.php后恢复正常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

绝望的一天,快难受死了。
昨天处理恶意报名的问题,更新了一下虚拟主机,然后今天网站打不开了,一开始以为是更新了虚拟主机后,连接不上数据库了,一直在找如何连接数据库,源码没有改,我想着应该不是代码的问题,更新更新数据库,更新更新服务器,但是一直报错,处理了一上午,有点难受,最后想先让默认首页改为”升级中,敬请期待”,但发现默认首页不知怎么的变成了index.htm,嗯?what?? 将默认首页改为index.php,正常显示。

[10501] PDOException in Connection.php line 687 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'c.mobile' in 'field list' $this->debug(false, '', $master); // 返回结果集 return $this->getResult($pdo, $procedure); } catch (\PDOException $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); } throw new PDOException($e, $this->config, $this->getLastsql()); } catch (\Throwable $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); } throw $e; } catch (\Exception $e) { if ($this->isBreak($e)) { return $this->close()->query($sql, $bind, $master, $pdo); Call Stack in Connection.php line 687 at Connection->query('SELECT `c`.`id`,`c`....', [], false, false) in Connection.php line 923 at Connection->select(object(Query)) in Query.php line 3007 at Query->select() in Index.php line 36 at Index->index() at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395 at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 132 at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null) at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185 at Middleware->think\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in Middleware.php line 130 at Middleware->dispatch(object(Request), 'controller') in Module.php line 137 at Module->exec() in Dispatch.php line 168 at Dispatch->run() in App.php line 432 at App->think\{closure}(object(Request), object(Closure), null) at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185 at Middleware->think\{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in Middleware.php line 130 at Middleware->dispatch(object(Request)) in App.php line 435 at App->run() in index.php line 21
最新发布
07-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值