TP的ORM连接mongodb数据库失败

songjean

问题描述

TP的ORM

程序代码

报错信息

截图报错信息里报错文件相关代码

'mongodb' => [
// 数据库类型
'type' => '\think\mongo\Connection',
// 设置查询类
'query' => '\think\mongo\Query',
'host' => '127.0.0.1',
'port' => 27017,
'database' => 'gchy',
'username' => 'root',
'password' => 'pass',
],

操作系统及workerman/webman等框架组件具体版本

$user = Db::connect('mongodb')->table('js_rq')->where('match_id', 1735425)->find();

247 1 0
1个回答

zhaoxc

webman安装HighGoDB(瀚高数据库)可以支持。
(1)PHP8+Webman框架项目和瀚高数据库兼容可适配。

  • 暂无评论
🔝