(PECL mongoclient >=0.9.0)
MongoClient::connect — Connects to a database server
Această funcție nu are parametri.
If the connection was successful.
Throws MongoConnectionException if it fails to connect to the database.