Skip to content

Instantly share code, notes, and snippets.

@klappradla
Last active August 10, 2016 09:17
Show Gist options
  • Select an option

  • Save klappradla/0340433b5d7b83e43f4061e44f98b7ea to your computer and use it in GitHub Desktop.

Select an option

Save klappradla/0340433b5d7b83e43f4061e44f98b7ea to your computer and use it in GitHub Desktop.
Install MySQL on El Capitain
# Install via homebrew
brew install mysql
# Start server via brew services
brew services start mysql
# Login as root to mysql command line tool
mysql -uroot
# Within mysql:
# Create new user for local user
CREATE USER 'max'@'localhost';
# Grant Access without password
GRANT ALL PRIVILEGES ON * . * TO 'max'@'localhost';
# Quit mysql interface again
\q
# Check if it worked
mysql # should log you into mysql command line tool
# (optional): import dump
mysql db_name < dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment