使用PDO驱动程序连接到mongodb [英] Connecting to mongodb using PDO driver
本文介绍了使用PDO驱动程序连接到mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将能够使用php的php_mongo.dll驱动程序连接到该数据库吗?
Will I be able to connect to this database using php's php_mongo.dll driver?
如果是,请提供一些示例代码,因为我无法在任何论坛上获得它?
If so, could you please provide some sample code as I was not able to get it in any forum?
推荐答案
MongoDB需要其自己的驱动程序.
MongoDB requires its own driver.
在您的情况下,PHP驱动程序位于此处: http://php.net/manual/zh/book.mongo.php
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.
这篇关于使用PDO驱动程序连接到mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文