Skip to content

Instantly share code, notes, and snippets.

@mattclegg
Forked from braidn/brew install
Last active December 26, 2015 23:29
Show Gist options
  • Save mattclegg/7230507 to your computer and use it in GitHub Desktop.
Save mattclegg/7230507 to your computer and use it in GitHub Desktop.
brew install mysql
mysql_install_db
sudo chown -R `whoami` /usr/local
CREATE USER 'root'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON TO 'root'@'localhost'
WITH GRANT OPTION;
CREATE USER 'root'@'%' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON TO 'root'@'%'
WITH GRANT OPTION;
CREATE USER 'admin'@'localhost';
GRANT RELOAD,PROCESS ON TO 'admin'@'localhost';
CREATE USER 'numbnuts'@'localhost';
mysqld_safe --skip-grant-tables
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
mysql.server start
mysql.server stop
mysql -u root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment