> > I think you should be fine
> > after changing the php.ini file.
>
>Yes, I wouldn't be surprised if the problem is an existing
>configfile, but I don't know which one. The location
>of mysql.sock isn't specified or implied in php.ini, so
>far as I can see.
Check again.
"grep mysql php.ini"
make sure that the permission for the mysql.sock file and the mysql
directory that it is located in are both set to 755. if the mysql.sock
file is located in a different directory that what the error msg gives
you, then create a simlink to the file.
On Tue, 20 Mar 2001, Paul Newby wrote:
>
> I
> >which is kind of odd because in the process of getting
> >PHP4 installed, I removed and MySQL, and changed
> >the layout in the process: the mysql directory
> >was moved from /var/lib to /usr/local/mysql/var
> >and PHP4 was configured with '--with-mysql=/usr/local/mysql'
> >... so I don't know
>which is kind of odd because in the process of getting
>PHP4 installed, I removed and reinstalled MySQL, and changed
>the layout in the process: the mysql directory
>was moved from /var/lib to /usr/local/mysql/var
>and PHP4 was configured with '--with-mysql=/usr/local/mysql'
>... so I don't know
I also have the problem described by Jason, or a somewhat similar
one. The MySQL command line monitor works fine, but when
php mysql functions are called from a script I get
Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock'
which is kind of odd because in the pro