I’ve been having a lot of issues lately, basically since the last time I upgraded XAMPP for OSX (v1.7.3) and/or my MySQL GUI tools. Using MySQL Workbench (v5.2.44), I can connect to the DB running in XAMPP just fine, but trying to browse any database, under tables/views/etc it only shows “Fetching…” and never shows anything else. I can actually query tables, which is interesting, but I can’t actually manage the databases in any meaningful way.
Googling, others reported having luck running mysql_upgrade on the command line, which ran fine but did not fix my issue.
The link above to
mysql_upgradedid not solve my problem directly, but it did lead me to examine my mysql error file, which ultimately led me to the solution. I noticed several lines like this in the error file (located at[xampp root]/var/mysql/[dbname].err):That led me to this page in the MySQL docs which states that you should explicitly set the temp folder for MySQL. I double-checked my config file (
[xampp root]/etc/my.cnf) and saw this, which looked fine:However, looking back at the error log, I also noticed this:
Duh. The config file was getting ignored, so the configured temp folder was not getting used (I have no clue why the file was world-writeable…). I edited permissions on the
my.cnffile which was 777 and simply removed the “Everyone|write” permission (now 775 / -rwxrwxr-x), reloaded everything, and now everything works.Not a very intuitive symptom for the ultimate fix, so hopefully this helps someone else.