Connecting to mongodb using PDO driver

拟墨画扇 提交于 2019-12-04 23:08:15

MongoDB requires its own driver.

In your case, the PHP driver is located here: http://php.net/manual/en/book.mongo.php

The instructions for installing it are on that page. There is also some sample code.

I think that PDO is only for relational databases. There's no PDO driver for mongodb.

There is list of databases which you can use with PDO driver: http://php.net/manual/en/pdo.drivers.php MongoDb is not among them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!