diff --git a/reference/mongo/connecting.xml b/reference/mongo/connecting.xml index 16e78d7ff3..d0aa18cb8c 100644 --- a/reference/mongo/connecting.xml +++ b/reference/mongo/connecting.xml @@ -58,41 +58,6 @@ $m = new Mongo("mongodb://${username}:${password}@localhost", array("db" => "myD If your connection is dropped, the driver will automatically attempt to reconnect and reauthenticate you. - - You can also authenticate on a per-database level with - MongoDB::authenticate: - - -admin; - -$db->authenticate($username, $password); - -?> -]]> - - - There is a major disadvantage to this method: if the connection is dropped - and then reconnects, the new connection will not be authenticated. If you use - the URI format, the PHP driver will automatically authenticate the user - whenever a new connection is made. - - - To authenticate with a different database, specify the database name after - the hosts. This example will log the user into the "blog" database: - - - -]]> -