Re: MySQL

From: Date: Thu, 26 Dec 2002 04:36:26 +0000
Subject: Re: MySQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129340@lists.php.net to get a copy of this message
Perhaps setting the ini file socket info is bypassing php using the tcp port directly. It should be going 'through' tcp/ip to get at the port mysql is listening to and they talk through there. I'm on a windows box and have limited experience with unix implementations, but on the one linux box I did get up and running I don't think I had set the php.ini to any sockets. Try commenting out the line. If you can get the sql error number and message it will also help you determine what's up. Mike <Parry60@aol.com> wrote in message news:3e.2994fca0.2b3b6499@aol.com... > I'm having some problems with MySQL. PHP just isn't working with it. > I'm running Apache 1.3.27 with PHP 4.2.3 and MySQL 3.23.49 on OpenBSD 3.2. > Apache and PHP were compiled with source (PHP was configured with > --with-mysql and --with-apxs), and MySQL was installed from a package. > I can connect to MySQL via the command-line interface, but not via PHP. > phpBB always reports "cannot connect to database". I've checked the > permissions and everything, and it all should work. > I've also set the mysql socket in php.ini to /var/run/mysql/mysql.sock > because that's where it is. > > Thanks, > Parry60

« previous php.general (#129340) next »