Skip to content

Instantly share code, notes, and snippets.

@horaceho
Created March 31, 2020 13:15
Show Gist options
  • Select an option

  • Save horaceho/510ebc41422cc347b74580f620670882 to your computer and use it in GitHub Desktop.

Select an option

Save horaceho/510ebc41422cc347b74580f620670882 to your computer and use it in GitHub Desktop.
MySQL installation output 2020-03-01
% brew install mysql
Updating Homebrew...
==> Installing dependencies for mysql: protobuf
==> Installing mysql dependency: protobuf
==> Downloading https://homebrew.bintray.com/bottles/protobuf-3.11.4.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/b6/b6eca888405b4998b1a5be7c7425d94f9ef2db76fcd9355ac920deaee3e2d15d?__gd
######################################################################## 100.0%
==> Pouring protobuf-3.11.4.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/protobuf/3.11.4: 268 files, 19.6MB
==> Installing mysql
==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.19.catalina.bottle.2.tar.gz
==> Downloading from https://akamai.bintray.com/22/22e86de2d5b0b2bfd7c1157c2bb3619f4a38a2cb1385fa4d1ec3aa0f2295dfbd?__gd
######################################################################## 100.0%
==> Pouring mysql-8.0.19.catalina.bottle.2.tar.gz
==> /usr/local/Cellar/mysql/8.0.19/bin/mysqld --initialize-insecure --user=ohho --basedir=/usr/local/Cellar/mysql/8.0.19
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start
==> Summary
🍺 /usr/local/Cellar/mysql/8.0.19: 286 files, 289.2MB
==> Caveats
==> mysql
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment