Skip to content

Instantly share code, notes, and snippets.

@monolithed
Last active August 11, 2016 09:04
Show Gist options
  • Select an option

  • Save monolithed/c76d2e6638d1a0aac0fc to your computer and use it in GitHub Desktop.

Select an option

Save monolithed/c76d2e6638d1a0aac0fc to your computer and use it in GitHub Desktop.
Mac OS Yosemite fixes
[port]:
1. Install Xcode-Beta from https://developer.apple.com/xcode/downloads/
2. ➜ sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer/
3. ➜ sudo xcodebuild -license
4. ➜ sudo port clean install
[brew]:
➜ cd `brew --repository`
➜ git reset --hard FETCH_HEAD
➜ sudo chown -R `whoami` `brew --prefix`
➜ brew doctor
➜ git clean -fd
➜ brew update
[mysql]
➜ sudo chown -R <your_user>:<your_group> /var/mysql/
# see
➜ cat /etc/group
➜ group <your_user>
➜ mysqld # mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
➜ perror 13 # OS error code 13: Permission denied
/opt/local/var/db/mysql55/mysql/plugin.frm
➜ sudo chown -R _mysql:_mysql /opt/local/var/db/mysql55
➜ sudo chmod 755 /opt/local/var/db/mysql55/{mysql,performance_schema,test}
➜ sudo chmod +r /opt/local/var/db/mysql55/mysql/*
➜ mysqld_safe
# 140928 20:08:30 mysqld_safe Logging to '/opt/local/var/db/mysql55/MacBook-Pro--Monolithed.local.err'.
➜ tail /opt/local/var/db/mysql55/MacBook-Pro--Monolithed.local.err
# 140928 20:08:30 [ERROR] /opt/local/lib/mysql55/bin/mysqld: Can't find file: './performance_schema/file_instances.frm' (errno: 13)
➜ sudo vi /opt/local/etc/mysql55/my.cnf
add the following rule: event_scheduler=disabled
➜ sudo chmod 777 /opt/local/var/run/mysql55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment