[Techtalk] at wit's end with PHP to MySQL
James
james at james-web.net
Wed Jan 30 23:37:52 EST 2002
If you can connect from the commandline, then it is more than likely a
PHP issue. Hit #php on OPN.
- James
> -----Original Message-----
> From: techtalk-admin at linuxchix.org
> [mailto:techtalk-admin at linuxchix.org] On Behalf Of Linda
> Sent: Wednesday, January 30, 2002 9:03 PM
> To: techtalk at linuxchix.org
> Subject: Re: [Techtalk] at wit's end with PHP to MySQL
>
>
> On 31 Jan 2002, at 12:42, Mary Gardiner wrote:
>
> > On Wed, Jan 30, 2002 at 08:24:49PM -0500, Linda wrote:
> > > Apache and PHP works together, but when I try to use PHP to
> > > connect to MySQL, I get the error message "Can't connect to local
> > > MySQL server on socket /tmp/mysql.sock"
> > >
> > > According to phpinfo( ), I have a built of PHP that has MySQL.
> > >
> > > I have no clue what is wrong. I have tried all the
> solutions I have
> > > been able to find on the web.
> >
> > OK, just to get some background on your situation:
> >
> > What were the solutions you tried?
> 1.) I copied 'my-medium.cnf' to /etc and renamed it as my.cnf
> 2.) I built the PHP RPM from source files.
> 3.) modified/unmodified 'php.ini'
>
> I think there's more, but I don't remember.
>
> > Can you connect to MySQL from the command line? (ie type "mysql" at
> > the prompt).
> Yes.
>
> >
> > What's the result of typing "ps aux | grep mysql"? (The command "ps
> > aux" lists all processes currently running on your box, the
> "|" means
> > send that output to the next program as input rather than
> dumping it
> > on the screen, and "grep mysql" will print any lines containing the
> > word "mysql" in them - this way we can find out if MySQl is
> actually
> > running on your system).
> mysql 994 0.0 3.4 20476 2188 pts/0 S
> 19:59 0:00
> /usr/libexec/mysql
>
> ...
>
> root 1070 0.0 0.9 1516 588 ....
>
>
>
> >
> > -Mary.
> >
> > --
> > Mary Gardiner
> > <mary at puzzling.org>
> > _______________________________________________
> > Techtalk mailing list
> > Techtalk at linuxchix.org
> > http://mailman.linuxchix.org/mailman/listinfo/techtalk
>
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>
More information about the Techtalk
mailing list