[Techtalk] at wit's end with PHP to MySQL
Linda
illini.engineer at att.net
Wed Jan 30 22:03:24 EST 2002
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
More information about the Techtalk
mailing list