Re: php cli and mysql
| From: | Frank Arensmeier | Date: | Wed, 15 Nov 2006 10:37:39 +0000 |
| Subject: | Re: php cli and mysql | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244650@lists.php.net to get a copy of this message | ||
FYI - the problem with mysql.sock has been an support issue at apple.com before.
http://docs.info.apple.com/article.html?artnum=301457
/frank
15 nov 2006 kl. 11.03 skrev Roman Neuhauser:
# lists@blazestudios.com / 2006-11-14 18:56:01 -0500:Roman Neuhauser wrote:# cajbecu@gmail.com / 2006-11-14 20:17:16 +0200:Because if the mysql.sock file is missing the mysql server won't start. If the mysql server isn't running the PHP script won't work. So I think it helps a lot.On 11/14/06, James Tu <jtu@esidesign.com> wrote:How could that possibly help?I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)touch /var/mysql/mysql.sock chmod 777 /var/mysql/mysql.sockHe didn't have trouble running the mysql server (in fact the original message said the same script worked when run from apache). So even if the file was there mysql wouldn't listen on it.--How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW.Cause you weren't THERE. http://bash.org/?255991--PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php