67
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac での MySQL セットアップ

Last updated at Posted at 2017-01-28

インストール

$ brew install mysql

コマンド一覧

$ mysql.server

Usage: mysql.server  {start|stop|restart|reload|force-reload|status}  [ MySQL server options ]

状態確認

$ mysql.server status

起動

$ mysql.server start

停止

$ mysql.server stop

リロード

$ mysql.server reload

再起動

$ mysql.server restart

ログイン例

$ mysql -uroot

ここは Mac 関係ないので、公式マニュアルを見たほうが幸せになれそう。
MySQL :: MySQL 5.6 リファレンスマニュアル :: 4.5.1.1 mysql のオプション

環境

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.6
BuildVersion:	16G1314

$ mysql --version
mysql  Ver 14.14 Distrib 5.7.22, for osx10.12 (x86_64) using  EditLine wrapper

sw_vers(1) Mac OS X Manual Page
mysql – Homebrew Formulae

所感

  • サーバーで作業することが多いとよく忘れるので備忘録

EOF

67
66
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
67
66

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?