Werbung
MongoDB::authenticate
(PECL mongo >=1.0.1)
MongoDB::authenticate — Log in to this database
Beschreibung
public array MongoDB::authenticate
( string $username
, string $password
)
This method causes its connection to be authenticated. If authentication is enabled for the database server (it's not, by default), you need to log in before the database will allow you to do anything.
Parameter-Liste
- username
-
The username.
- password
-
The password (in plaintext).
Rückgabewerte
Returns database response.