Re: Mysql connection from within php

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul D. Ouderkirk
Date: Tuesday, June 1, 2010 - 6:51 am

On Tue, Jun 1, 2010 at 9:30 AM, What you get is Not what you see
<wyginwys@gmail.com> wrote:

From: http://dev.mysql.com/doc/refman/5.0/en/connecting.html

"On Unix, MySQL programs treat the host name localhost specially, in a
way that is likely different from what you expect compared to other
network-based programs. For connections to localhost, MySQL programs
attempt to connect to the local server by using a Unix socket file."

On OpenBSD, the MySQL socket file is outside the httpd chroot, so your
PHP script can't access it.  Accessing 127.0.0.1 over TCP is no
problem.

Paul.


-- 
------------------------------
Paul D. Ouderkirk
Senior UNIX System Administrator
paul@ouderkirk.ca
------------------------------
laughing,
in the mechanism
-- William Gibson
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Mysql connection from within php, What you get is Not ..., (Tue Jun 1, 6:30 am)
Re: Mysql connection from within php, L. V. Lammert, (Tue Jun 1, 6:45 am)
Re: Mysql connection from within php, Paul D. Ouderkirk, (Tue Jun 1, 6:51 am)
Re: Mysql connection from within php, Bret S. Lambert, (Tue Jun 1, 7:45 am)
Re: Mysql connection from within php, Vadim Agarkov, (Tue Jun 1, 9:41 am)
Re: Mysql connection from within php, Eugene Yunak, (Wed Jun 2, 6:06 am)
Re: Mysql connection from within php, Liviu Daia, (Wed Jun 2, 10:48 am)
Re: Mysql connection from within php, Eugene Yunak, (Wed Jun 2, 11:47 am)
Re: Mysql connection from within php, Liviu Daia, (Wed Jun 2, 12:28 pm)