Last active
August 10, 2016 09:17
-
-
Save klappradla/0340433b5d7b83e43f4061e44f98b7ea to your computer and use it in GitHub Desktop.
Install MySQL on El Capitain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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