{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/128","repository_url":"https://api.github.com/repos/mongodb/mongo-php-library","labels_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/128/comments","events_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/128/events","html_url":"https://github.com/mongodb/mongo-php-library/issues/128","id":135356633,"number":128,"title":"how can I select DB and authenticate","user":{"login":"oblank","id":2127571,"avatar_url":"https://avatars.githubusercontent.com/u/2127571?v=3","gravatar_id":"","url":"https://api.github.com/users/oblank","html_url":"https://github.com/oblank","followers_url":"https://api.github.com/users/oblank/followers","following_url":"https://api.github.com/users/oblank/following{/other_user}","gists_url":"https://api.github.com/users/oblank/gists{/gist_id}","starred_url":"https://api.github.com/users/oblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblank/subscriptions","organizations_url":"https://api.github.com/users/oblank/orgs","repos_url":"https://api.github.com/users/oblank/repos","events_url":"https://api.github.com/users/oblank/events{/privacy}","received_events_url":"https://api.github.com/users/oblank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-22T09:00:00Z","updated_at":"2016-02-22T15:17:15Z","closed_at":null,"body":"old mongo extension,  has functions selectDB and authenticate, but how can I do same thing with mongodb extension?\r\n\r\nthx"},"comment":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/comments/187225959","html_url":"https://github.com/mongodb/mongo-php-library/issues/128#issuecomment-187225959","issue_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/128","id":187225959,"user":{"login":"jacqueswaller","id":3794488,"avatar_url":"https://avatars.githubusercontent.com/u/3794488?v=3","gravatar_id":"","url":"https://api.github.com/users/jacqueswaller","html_url":"https://github.com/jacqueswaller","followers_url":"https://api.github.com/users/jacqueswaller/followers","following_url":"https://api.github.com/users/jacqueswaller/following{/other_user}","gists_url":"https://api.github.com/users/jacqueswaller/gists{/gist_id}","starred_url":"https://api.github.com/users/jacqueswaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacqueswaller/subscriptions","organizations_url":"https://api.github.com/users/jacqueswaller/orgs","repos_url":"https://api.github.com/users/jacqueswaller/repos","events_url":"https://api.github.com/users/jacqueswaller/events{/privacy}","received_events_url":"https://api.github.com/users/jacqueswaller/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T15:17:15Z","updated_at":"2016-02-22T15:17:15Z","body":"I'm not sure how to authenticate once already connected, but my assumption is that if you try to create a client (or a Manager, for that matter) and the credentials are wrong, then a `MongoDB\\Driver\\Exception\\AuthenticationException` will be thrown.\r\n\r\nhttp://php.net/manual/en/class.mongodb-driver-exception-authenticationexception.php"}}