webman按照thinkorm后可以访问数据,但是日志提示报错,不知道什么原因导致的

xiaochao
2022-08-20 15:40:49 pid:5389 Worker[5389] process terminated with ERROR: E_ERROR "Uncaught think\db\exception\PDOException: SQLSTATE[HY000] [2002] Connection refused in /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php:797
Stack trace:
#0 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(792): think\db\PDOConnection->getPDOStatement()
#1 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(792): think\db\PDOConnection->getPDOStatement()
#2 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(792): think\db\PDOConnection->getPDOStatement()
#3 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(792): think\db\PDOConnection->getPDOStatement()
#4 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(710): think\db\PDOConnection->getPDOStatement()
#5 /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(656): think\db\PDOConnection->pdoQuery()
#6 /mnt/d/data0/webman/support/bootstrap/ThinkOrm.php(21): think\db\PDOConnection->query()
#7 /mnt/d/data0/webman/vendor/wor in /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php on line 797"
2022-08-20 15:40:49 pid:5224 worker[plugin.webman.push.server:5389] exit with status 65280
2022-08-20 15:40:49 pid:5410 Worker[5410] process terminated with ERROR: E_ERROR "Uncaught think\db\exception\PDOException: SQLSTATE[HY000] [2002] Connection refused in /mnt/d/data0/webman/vendor/topthink/think-orm/src/db/PDOConnection.php:797

webman为最新版本1.4.2,默认数据库没事,只有thinkorm报错,不是一直出现,是间隔几秒或者几分钟出现一次。

1088 1 1
1个回答

walkor 打赏

把数据库里不用的数据库配置去掉

  • xiaochao 2022-08-20

    去掉了也不行

  • walkor 2022-08-20

    报错是连不上数据库,把不存在的数据库配置去掉。重启webman

年代过于久远,无法发表回答
×
🔝