Howdy, folks! Just an FYI for Mac users who might encounter the
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
error after a fresh install of MySQL 4.0.22 using the standard binary install. I spent hours trying to install MySQL and trying to figure out the problem but finally gave up since I had a copy of 4.0.18 and it installed no problem. Here is some info for anyone encountering this problem and is more determined to resolve it than I was...
-- the 4.0.22 installer for OSX 10.2 worked fine on an iMac G3/500 we had but I could not get it to startup from a beige G3 Server/300
-- if you login as ROOT, you can check the /usr/local/mysql/data directory for an error log called yourhost.yourdomain.yourtopdomain.err
-- in my case, amidst the innoDB stuff I saw the mysqld daemon did not have access privileges for what it needed to do; I tried many things, including changing permissions on everything in mysql directory to mysql:mysql, then mysql:daemon, then finally 777 just to see
-- 777 got me closer, but then the .err file showed that the mysql install tables were not set up (and I remembered reading that someone on the internet with a similar problem transferred tables from another server to get it going); I ran the ./scripts/mysql_install_db in the hopes of installing the tables that did not install the first time but had no joy.
-- after a few more attempts, I gave up thinking that even if I got everything going, I would not want MySQL to run with 777 files and who knows what other Mickey Mouse crutches I'd have to do
So, I gave up on 4.0.22 and used an old download I had that was 4.0.18 and it installed flawlessly and started up great. I had also installed 4.1.? and had it working great, too, but 4.1.x changed password security and I could not get it to work w/phpMyAdmin 2.6.? very well. I was able to use OLD_PASSWORD() to convert each user, but I was not able to get MySQL to startup automatically using the --old_password option and I didn't want to have to manually convert every new user I made.
MySQL 4.0.18 is working fine on this old server. If you're experiencing similar problems w/4.0.22 to what I had, I recommend going to 4.0.18 or 4.1.x. instead. Weird that 4.0.22 worked fine on another computer w/same OS version and G3 cpu...
Anyway, I did not bother reporting this to either mysql.com or
www.entropy.ch since there probably aren't many folks w/beige G3s trying to install 4.022 out there, but just in case you're one of them, I thought I'd recant this tale of woe for the archives in the hopes it helps you out.
--ST
BTW, I should add that I researched this quite a bit and also tried things like checking paths/permissions on mysql.sock and stuff, too.