I found a tip elsewhere that says to run:
> sudo ${XAMPP_HOME}/xamppfiles/bin/mysql.server start
I did, and the result was interesting:
> sudo ${XAMPP_HOME}/xamppfiles/bin/mysql.server start
Password:
sudo: /xamppfiles/bin/mysql.server: command not found
Thus ${XAMPP_HOME} is undefined.
So I edited ~/.bash_profile and added the line:
export XAMPP_HOME="/Applications/XAMPP"
After restarting Terminal, our command now yields:
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
Not sure what to do at this point, but it’s progress.
Update: I looked in /Applications/XAMPP/xamppfiles/var/mysql and noticed a .err file (should start with your local computer name, like johns-macbook-pro.local.err). It indicated that my permissions were screwed up: “The error means mysqld does not have the access rights to the directory. File name ./ibdata1”
Setting /Applications/xampp/xamppfiles/var/mysql/ and all its contents to be readable and writable for everyone did the trick. Probably the best solution is to chown -R mysqld /Applications/xampp/xamppfiles/var/mysql/.