On 8/1/07, Jason Pruim <japruim@xxxxxxxxxx> wrote: > > On Aug 1, 2007, at 9:55 AM, Michael Preslar wrote: > > >> @mysql_connect('localhost', 'user', 'password') or die("Cannot > >> connect to DB!" . mysql_error()); > > .. > >> cannot connect to DB!Can't connect to local MySQL server through > >> socket '/var/mysql/mysql.sock' (2)qs:/volumes/raider/webserver/ > >> documents/tests/ticklers japruim$ > > > > MySQL is running right? (I know, silly question, but have to make > > sure) > > > > If it is.. grep sock /etc/my.ini .. Bet the socket file its creating > > is in /tmp or /var/lib/mysql > > Okay, so the command didn't work.. couldn't find my.ini... But I just > cd'ed into /tmp and there is a file mysql.sock in there... Do I need > to move that somewhere else? I realize that this is starting to get > off topic for this list... So Maybe I should take this to a mysql > list since it looks like php isn't at fault? > > > > -- > > Jason Pruim > Raoset Inc. > Technology Manager > MQC Specialist > 3251 132nd ave > Holland, MI, 49424 > www.raoset.com > japruim@xxxxxxxxxx > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > The cheapest fix, if you have root access, is just to symlink it like so: ln -s /tmp/mysql.sock /var/mysql/mysql.sock It'll at least get it running, but PHP should be set to look for the MySQL socket in the right place via both the CLI and the Apache module. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php