Skip to content

Instantly share code, notes, and snippets.

@CodeAbstract
Created September 14, 2012 09:44
Show Gist options
  • Save CodeAbstract/3721057 to your computer and use it in GitHub Desktop.
Save CodeAbstract/3721057 to your computer and use it in GitHub Desktop.
Error Statrting MySQL on Mac OSx 10.6.8
Problem:
Starting MySQL
- ERROR! The server quit without updating PID file (/usr/local/var/mysql/User.local.pid).
***mysqld tries to find its tables in /usr/local/var/mysql
Solution:
***change directories accordingly***
Issue Command: "mysql_install_db --verbose --user=username --basedir="$(brew --prefix mysql)" --datadir=/Users/username/mysql-data --tmpdir=/tmp"
Add file: "/usr/local/etc/my.cnf"
With content:
[mysqld]
datadir=/Users/users/mysql-data
Then try running "mysql.server start" again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment