LoginSignup
1
1

More than 5 years have passed since last update.

手動で起動したMySQLを手動でシャットダウンする

Posted at

たとえば開発環境などで

mysqld_safe --skip-grant-tables &

などとして、 systemctl などを利用せず手動でmysqlを起動しますよね。

MySQLは複数プロセスが立ち上がるため、1つづつkillして回るのではなく、

mysqladmin -u root -p shutdown 

でシャットダウンができます。

パスワードを設定していない場合や、skip-grant-tablesオプションを起動している際は -p オプションは必要ありません。

mysqladmin -u root shutdown 
1
1
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
1
1