How to start/stop MySQL server on Linuxどのように開始/停止上でMySQLサーバにLinuxの
# To Start MySQL Server # MySQLサーバを起動する
/sbin/service mysqld start / sbin /サービスmysqldを開始
# To Stop MySQL Server # MySQLサーバを停止する
/sbin/service mysqld stop / sbin /サービスmysqldを停止する
# To Restart MySQL Server # MySQLサーバを再起動する
/sbin/service mysqld restart / sbin /サービスmysqldを再起動する
And of course there is the brute force way to kill all the processes:そしてもちろん、ブルートフォースにはすべてのプロセスを殺す方法:
$ for i in `ps -ef |grep mysqld |awk ‘{print $2}’`; do `kill -9 $i`; done $のi 、 ` psの- ef | grep mysqldの| Awkの' (印刷$ 2 ) ' ` ; -9 $私を殺す` ` ;完了
Thanks to Anthony Eden for the comment (below) to remove the dot in front.アンソニーイーデンのおかげで、コメント(下)を削除するにドットの前にします。
A simpler alternative is:単純な代替は:
pkill mysqld pkillのmysqld
This will kill the mysqld process.これにより、 mysqldプロセスを台無しにする。 However the best way to stop (because it stops properly) is obviously:しかしする最良の方法を停止する(停止するため、適切な)は、明らかに:
/sbin/service mysqld stop / sbin /サービスmysqldを停止する
Filed under提出されて Databaseデータベース , 、 Linuxリナックス , 、 RDBMS RDBMSのより多くの , 、 Web Hostingウェブホスティング | |
| |
RSS 2.0 RSS 2.0を | |
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




January 8th, 2005 at 12:21 pm 2005年1月8日12:21 pmの
I suggest you remove the .私を削除しておくことをおすすめする。 in front of the first slash so that you can execute that command from anywhere, not just in the / directory.の最初のスラッシュの前に実行することができるように、どこからでもそのコマンドだけではなく、 /ディレクトリにコピーします。
February 2nd, 2005 at 4:41 am 2005年2月2日は4:41アム
what about何について
# killall mysqld # killallをmysqldの
February 2nd, 2005 at 5:20 am 2005年2月2日は5:20アム
Ortwin, ortwin 、
Very true.非常にtrueです。 killall can be used instead of the awkward awk code. killallを代わりに、厄介なことに使われるAwkのコードです。 I missed it because it is not on my Linux installation provided by my hosting provider.私逃したことではないので、 Linuxをインストールして提供されるマイホスティングプロバイダです。
Thanks for the tip.ヒントてくれてありがとう。
AngsumanのAngsuman
March 20th, 2005 at 8:31 pm 2005年3月20日の午前3:31
very goodとても良い
March 31st, 2007 at 5:49 am 2007年3月31日の午前9:19
hai angsuman ..well the tip you provided to start the SQL server isnt working .海のAngsuman ..よくするヒントを提供して、 SQL Serverのない作業を開始します。
April 2nd, 2007 at 7:48 am 2007年4月2日の午後2:48
You can also try these:これらしようとすることもできます:
service mysqld startサービスmysqldを開始
service mysqld stopサービスmysqldを停止する
service mysqld restartサービスmysqldを再起動する
October 18th, 2007 at 5:06 am 2007年10月18日5:06アム
I tried the above one, but not able to stop!上記の1つを作ってみましたが、しかしを停止することはできません!
October 18th, 2007 at 1:14 pm 2007年10月18日1:14 pmの
To stop just use:使用を停止するだけ:
service mysqld stop サービスmysqldを停止する
November 27th, 2007 at 3:19 pm 2007年11月27日は3:19 pmの
I tried /sbin/service mysqld stopみました/ sbin /サービスmysqldを停止する
But faled.しかし、 faledです。 got response “mysqld: unrecognized serviceが応答"のmysqld :認識されていないサービス
“ "
November 27th, 2007 at 3:26 pm 2007年11月27日は3:26 pmの
Got the way.する方法があります。 “service mysql stop” worked fine. "サービスMySQLの停止"働い罰金です。
But, please clarify the difference.しかし、下記の違いを明確にする。 I don’t know what is the difference.わかんないの違いは何です。
November 27th, 2007 at 8:22 pm 2007年11月27日は午後8時22分
No difference.いいえ違いです。 The name of the mysqld executive may vary from one distribution to another and even between versions.エグゼクティブは、 mysqldの名前を1つのディストリビューションは異なる場合がありますから、さらに間を別のバージョンです。 On fedora core 6 it is mysqld.上ソフト帽の中心6これはmysqldのです。 Which distro are you using?どのディストリビューションを使用してですか?
November 29th, 2007 at 7:48 pm 2007年11月29日の午前1:48
Worked like a charm, many thanks!仕事の魅力のように、多くのありがとう!
June 11th, 2008 at 5:20 am 2008年6月11日は5:20アム
Really this should be titled How to Stop Mysql Server on Redhat/Fedora.本当にこれはタイトルのMySQLサーバを停止する方法では、 RedHat / Fedoraばかりでした。 /sbin/service is a redhat-ism. / sbin /サービスは、 2022 -イズムです。 Its basically a wrapper script around the init.d scripts. wrapperスクリプトは、基本的に周りはinit.dのスクリプトです。 Debian/Ubuntu users, and other based on SysV style init scripts (most I think maybe not SuSE) can do the same thing by invoking /etc/init.d/mysql stop as root which is what /sbin/service does. Debianの/ ubuntuユーザー、およびその他のスタイルに基づいてsysv initスクリプト(ほとんどないと思うかもしれないSUSEの)についても同じことを呼び出して/ etc / init.d / rootとしてMySQLの停止これは何/ sbin /サービスの機能です。