On Friday 28 March 2003 05:31 pm, Ed Wilts wrote:
> On Fri, Mar 28, 2003 at 05:18:36PM -0500, 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
>
> Did you install the php-mysql rpm?

The php was compiled from source, so I didn't use the RPM. I found out that 
redhat mysql rpm set the socket in /var/lib/mysql/ instead of 
/tmp/mysql.sock, which I guess is the default.

That's the thing that I often find out about Redhat RPM... sometimes it just 
uses it's own "config" that can be a bit confusing if I combine with stuff I 
compile myself.... oh well...

RDB
-- 
-------------------------------------------------
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format
 X   attachments.
/ \
-------------------------------------------------
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-------------------------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to