I used the following php code to connect with MongoDB.
*$m = new MongoClient("mongodb://localhost:27017");*
But i am getting the following error.
*Fatal error: Uncaught exception 'MongoConnectionException' with message
'Failed to connect to: localhost:27017: Unknown error'**
I tried lot of connection string possibilities that are posted in various
blogs. but nothing helped. Can anyone help on this?
i am seeing following details in my phpinfo
mongo MongoDB Supportenabled Version 1.3.2RC1
DirectiveLocal ValueMaster Value mongo.allow_empty_keys00 mongo.chunk_size
262144262144 mongo.cmd$$ mongo.default_hostlocalhostlocalhost
mongo.default_port2701727017 mongo.is_master_interval*no value**no value*
mongo.long_as_object00 mongo.native_long00 mongo.ping_interval*no value**no
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to
See also the IRC channel -- freenode.net#mongodb