On Fri, 2003-03-28 at 15:18, Reuben D. Budiardja wrote: > Hi, > I have PHP that I compiled from source (PHP-4.3.0) with mysql support > (./configure --with-mysql). > > I installed mysql from Redhat RPM (Redhat 7.3), and then start the mysql > daemon by: > $> /etc/rc.d/init.d/mysqld start > > Connecting to mysql using the console is fine. But when trying it with php, I > got: > > Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in > /usr/local/apache/htdocs/ambs/inc/rb_mysql_class.inc on line 10 > > The file or dir /tmp/mysql.sock does not even exist. This is probably > something simple, but can anyone help point out what I am missing ? > > Thanks. > RDB
On my machine, mysql.sock is in /var/lib/mysql. Perhaps that's the problem, it's just somewhere else. I don't know off-hand, but I'd guess there's some config variable you need to set or specify when you run configure on the php source to tell it where to find that socket. -- David Hollister Furthurnet - Free, legal P2P - share the tunes: http://furthurnet.org -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list