LoginSignup
15
13

More than 5 years have passed since last update.

macでmysqlを自動起動させる

Last updated at Posted at 2018-09-25

概要

Macで、brew servicesを利用して、Macの起動と同時にMySQLを起動させる設定をする。

自動起動有効化

ターミナルを起動し、以下のコマンドを実行

brew services start mysql

Successfully started 'mysql' と表示されれば成功。

自動起動無効化

ターミナルを起動し、以下のコマンドを実行

brew services stop mysql

Successfully stopped 'mysql' と表示されれば成功。


自動起動を有効化しているサービスを確認する時は、以下のコマンドでサービスの一覧を見れる。

brew services list

Statusの項目がstartedであれば有効化、stoppedであれば無効化されている。

15
13
0

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
15
13