Message from discussion
Proper connection string to use a replica set (PHP)
Received: by 10.236.156.196 with SMTP id m44mr6671602yhk.9.1340394741435;
Fri, 22 Jun 2012 12:52:21 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.236.128.9 with SMTP id e9ls3627039yhi.9.gmail; Fri, 22 Jun
2012 12:52:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.191.197 with SMTP id g45mr575825yhn.7.1340394726273; Fri,
22 Jun 2012 12:52:06 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
krist...@10gen.com designates internal as permitted sender)
smtp.mail=krist...@10gen.com; dkim=pass
header...@10gen.com
Received: by j25g2000yqn.googlegroups.com with HTTP; Fri, 22 Jun 2012 12:52:06
-0700 (PDT)
Date: Fri, 22 Jun 2012 12:52:06 -0700 (PDT)
In-Reply-To: <6d6c69e7-2451-495a-bb47-09f538183b68@googlegroups.com>
References: <6cfbc99b-4049-409c-b4e1-032b85fda38a@r28g2000prb.googlegroups.com>
<9fb5cb0a-70f3-4e14-bfdb-c72843639708@googlegroups.com> <6d6c69e7-2451-495a-bb47-09f538183b68@googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML,
like Gecko) Chrome/18.0.1025.168 Safari/535.19,gzip(gfe)
Message-ID: <2979747b-f2b8-48e6-be11-093398c1fa3b@j25g2000yqn.googlegroups.com>
Subject: Re: Proper connection string to use a replica set (PHP)
From: Kristina Chodorow <krist...@10gen.com>
To: mongodb-user <mongodb-user@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks, unfortunately, looks like your app's error handlers are
catching the error so I can't tell what it is from that. Can you run:
try {
$m =3D new Mongo("mongodb://cache1-zone");
}
catch (MongoException $e) {
echo $e->getMessage()."\n";
var_dump($e);
}
On Jun 22, 3:36=A0pm, AllanD <a_d...@bellsouth.net> wrote:
> Sorry Kristina,
> I forgot to mention there is no admin db in mongo,
> not sure if its supposed to be there or not.
> only local and some other little test ones.
>
> see my results from your code below.
> Allan
>
>
>
>
>
>
>
> On Friday, June 22, 2012 2:32:04 PM UTC-5, AllanD wrote:
> > Thanks for the quick reply,
> > I commented out all my other code and ran your within the try catch and
> > get the following.
>
> > *Fatal error*: Uncaught exception 'MongoConnectionException' with messa=
ge
> > 'Error 0' in /usr/local/apache2/htdocs/www/xxx/test-session.php:21 Stac=
k
> > trace: #0 /usr/local/apache2/htdocs/www/xxx/test-session.php(21):
> > Mongo->__construct('mongodb://cache...') #1 {main} thrown in*
> > /usr/local/apache2/htdocs/www/xxx/test-session.php* on line *21*
>
> > I am here and can throw more code test at it if you need me too.