> From: Jeromie Clark <[EMAIL PROTECTED]> > > I'm not sure why localhost stopped working, but using 127.0.0.1 > instead > of localhost should accomplish the same thing, and avoid the DNS cost.
It's not the same. When you do that, you're still going through the network interface, instead of a socket, which is much more efficient. I went into /etc/php.ini and told PHP where the socket is (/tmp/ mysql.sock), and it is working properly again. But I'm still puzzled as to why this happened. As far as I could tell, my php.ini had not been changed, but it had no path defined, so maybe a new binary with a different compiled-in default was installed as part of the update. I really wish they wouldn't do things like that! >> I just updated from MacOS X 10.4.3 to 10.4.4, and without making ANY >> other changes, all my websites that formerly connected to MySQL via >> "localhost" no longer work. I can still connect by using an explicit >> host name instead of "localhost", but my understanding is this is >> slower. >> >> I get the error message: "Can't connect to local MySQL server through >> socket '/var/mysql/mysql.sock' (2) (localhost))" That path doesn't >> exist; the socket is in /tmp, where it's always been. >> >> I've grepped through php.ini and my.cnf, and nothing stuck out. >> >> Any clues? >> >> >> :::: Smoking kills. If you're killed, you've lost a very important >> part of your life. -- Brooke Shields, during an interview to become >> Spokesperson for federal anti-smoking campaign. :::: >> :::: Jan Steinman, http://www.EcoReality.org:::: >> >> >> >> >> >> The php_mysql group is dedicated to learn more about the PHP/MySQL >> web database possibilities through group learning. >> Yahoo! Groups Links >> >> >> >> >> >> >> >> > > > > ______________________________________________________________________ > __ > ______________________________________________________________________ > __ > > > The php_mysql group is dedicated to learn more about the PHP/MySQL > web database possibilities through group learning. > ---------------------------------------------------------------------- > -- > Yahoo! Groups Links > > > > > ---------------------------------------------------------------------- > -- > > > :::: In a low-energy future... the wealth of nations will be measured by the quantity and quality of their forests. -- David Holmgren :::: :::: Jan Steinman, http://www.EcoReality.org :::: The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php_mysql/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
