- 追加された行はこの色です。
- 削除された行はこの色です。
&tag(Homebrew/mysql);
*目次 [#id978086]
#contents
*参考情報 [#r126b57e]
*インストール [#u945690f]
-普通にインストールすると、5.6が入る
brew install mysql
-データベース初期化。
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
*自動起動 [#pabdf864]
-自分でplistを登録する。
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
*サーバー起動 [#wbecb597]
-mysql.serverコマンドで操作できる。
mysql.server start
*rootのパスワード設定 [#s0cda662]
-mysqladminを使う
mysqladmin -uroot password