動かざることバグの如し

近づきたいよ 君の理想に

MacにMySQLをインストールする

Homebrew経由でインストールを行うのであらかじめbrewコマンドが叩けるようにしておく

インストール

brew update
brew install mysql

起動

mysql.server start

初期設定

mysql_secure_installation
Set root password? [Y/n] Y
New password: 
Re-enter new password: 

Remove anonymous users? [Y/n] n
 ... skipping.

Disallow root login remotely? [Y/n] n
 ... skipping.

Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reload privilege tables now? [Y/n] Y
 ... Success!

ログイン

mysql -u root -p