Re: [PHP4BETA] Odp: [PHP4BETA] Problem with MySQL/PHP4

From: Date: Wed, 01 Mar 2000 21:07:49 +0000
Subject: Re: [PHP4BETA] Odp: [PHP4BETA] Problem with MySQL/PHP4
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11292@lists.php.net to get a copy of this message
I have this same problem. I sorta cheated and made a sym-link of mysql.sock in /tmp. I think the command is: ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock -James On Wed, 1 Mar 2000, Lukasz Felsztukier wrote: > ----- Original Message ----- > From: Roberto Fernandez <archiver@db.geocrawler.com> > To: <php4beta@lists.php.net> > Sent: Wednesday, March 01, 2000 9:45 PM > Subject: [PHP4BETA] Problem with MySQL/PHP4 > > > | I upgraded my apache from 1.3.9 to 1.3.12 and php > | from 3.0.14 to 4.0b4. > | I have mysql 3.22.32 that is working fine in > | console : > | > [connection working cut out]| > | But when I try to access them from apache I > | receive: > | > | > Warning: Can't connect to local MySQL server > | through socket '/tmp/mysql.sock' (111) in > | db_mysql.inc on line 73 > | > Database error: pconnect(localhost, sesion, > | $Password) failed. > | > MySQL Error: () > | > Session halted. > | > | I have mysql installed in /usr/bin > | & /var/lib/mysql. > | One thing I noticed is that mysql(console) looks > | mysql.sock in /var/lib/mysql (where actually is) > | and apache looks in /tmp. > | How can I explain apache where to look for the > | socket? I think that's the problem. Isn't it? > > My guess is you should basically rebuild php --with-mysql=/var/lib/mysql > Am I right, anyone ? > Cheers, > Lukasz > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net >

« previous php.version4 (#11292) next »