Re: mysql_connect does not connect
| From: | Jason Davidson | Date: | Tue, 14 Sep 2004 20:22:17 +0000 |
| Subject: | Re: mysql_connect does not connect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196658@lists.php.net to get a copy of this message | ||
And for more testimonies, sinse i fear im getting absolutely no credit
for having any knowledge of mysql and php.. :P (i say that in jest of
coarse)
search this in google and see how many people fixed the very problem by
disabling or adjusting the firewall.
http://www.google.ca/search?hl=en&ie=UTF-8&q=mysql+firewall+localhost&btnG=Search&meta=
Cheers, and good luck
Jason
"Jason Davidson" <jdavidson@zworg.com> wrote:
>
> ok, well, i just posted a link for you to check out, it gives insight on
> how mysql connects on different platforms, this will of use to you i
> think, the last few bullets in the page i linked to are of some
> importance to your error msg which says, cant connect to localhost, and
> not, cant connect through socket...
>
> again, link,,
> Ï.I¶
> Õ¦z®6~¯¶mç5http://dev.mysql.com/doc/mysql/en/Can_not_connect_to_server.html
>
> Jason
>
> "Sam Hobbs" <SoCalSam@GMail.com> wrote:
> >
> > The firewall I am using is ZoneAlarm, the free version. I am nearly certain
> > that it does not allow specific ports to be opened, at least not for
> > specific addresses. So if this were a requirement, probably many others
> > would have that specific problem.
> >
> > However if nothing else works, I will try to look into this further when I
> > have time. At the moment I must spend time on something else.
> >
> >
> > "Jason Davidson" <jdavidson@zworg.com> wrote in message
> > news:28040.1095190054@zworg.com...
> > > The webpage of coarse, is not local, regardless of where its hosted, so
> > > a firewall will come into play when trying to connect.
> > > You dont have disable it, i should have been specifc i suppose, you must
> > > allow for the mysql port to be open. :)
> > > Whats for others to confirm, try it yourself and see if it works.
> > >
> > > Jason
> > >
> > > "Sam Hobbs" <SoCalSam@GMail.com> wrote:
> > >>
> > >> "Jason Davidson" <jdavidson@zworg.com> wrote in message
> > >> news:496.1095142569@zworg.com...
> > >> > Windows XP Firewall, or any other firewall for that matter must be off.
> > >> > Jason
> > >>
> > >> Can someone else confirm that this is correct?
> > >>
> > >> For one thing, when I use MySQL directly outside of a web page, it works.
> > >> The sample C program works.
> > >>
> > >> For another thing, I doubt very immensely that everyone using
> > >> mysql_connect
> > >> does not use a firewall. Even if anyone else does, I will not. It would
> > >> have
> > >> been quite unreasonable for the developers of PHP to develop software
> > >> with
> > >> that requirement, but I doubt it was.
> > >>
> > >> --
> > >> PHP General Mailing List (http://www.php.net/)
> > >> To unsubscribe, visit:
> > >> http://www.php.net/unsub.php
> > >>
> > >>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>