LoginSignup
11
9

More than 5 years have passed since last update.

chkconfigでmysqlを自動起動設定にする

Posted at

chkconfigは、サービス管理のコマンド。
chkconfig --list <名前> で起動設定を確認できる。

$ chkconfig --list mysqld

mysqld          0:off   1:off   2:off   3:off   4:off   5:off   6:off

mysqlの自動起動を有効にするには下記コマンド。

$ chkconfig mysqld on

再度確認すると設定が変更されているのがわかる。

$ chkconfig --list mysqld

mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
11
9
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
11
9