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
  • Select an option

  • Save mattclegg/7230507 to your computer and use it in GitHub Desktop.

Select an option

Save mattclegg/7230507 to your computer and use it in GitHub Desktop.

Revisions

  1. mattclegg revised this gist Oct 30, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chown
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    sudo chown -R 'whoami' /usr/local"
    sudo chown -R `whoami` /usr/local
  2. @braidn braidn renamed this gist May 16, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @braidn braidn renamed this gist May 16, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @braidn braidn created this gist May 16, 2012.
    1 change: 1 addition & 0 deletions brew install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    brew install
    1 change: 1 addition & 0 deletions brew mysql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    brew install mysql
    1 change: 1 addition & 0 deletions build mysql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    mysql_install_db
    1 change: 1 addition & 0 deletions chown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo chown -R 'whoami' /usr/local"
    1 change: 1 addition & 0 deletions grant-tables
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    mysqld_safe --skip-grant-tables
    1 change: 1 addition & 0 deletions launch_ctl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
    9 changes: 9 additions & 0 deletions mysql commands
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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';
    2 changes: 2 additions & 0 deletions server stop start
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    mysql.server start
    mysql.server stop
    1 change: 1 addition & 0 deletions u root
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    mysql -u root