Uploaded image for project: 'Perl Driver'
  1. Perl Driver
  2. PERL-153

MongoDB::Connection new method doesn't work as described in perldoc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.45
    • Fix Version/s: None
    • Component/s: Perl driver
    • Labels:
      None
    • Environment:
      Ubuntu 10.4

      Description

      $c = MongoDB::Connection->new(
      host => "mongodb://localhost:27017",
      db_name => "foo",
      w => 1,
      find_master => 1,
      username => "user1",
      password => "password"
      );

      yields -> couldn't connecto to any servers listed: localhost27017 at /usr/local/lib/perl/5.10.1/MongoDB/Connection line 497.

      $c = MongoDB::Connection->new(
      host => "mongodb://localhost:27017",
      w => 1,
      find_master => 1
      );
      $c->authenticate("foo", "user1", "password");

      works.

      The documentation says that both should work.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: