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 <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php