{"id":36,"date":"2005-05-12T00:09:19","date_gmt":"2005-05-11T16:09:19","guid":{"rendered":"http:\/\/www.banbanli.net\/wordpress\/?p=36"},"modified":"2005-05-12T00:09:21","modified_gmt":"2005-05-11T16:09:21","slug":"mysql-restart-failure-but-actully-is-running","status":"publish","type":"post","link":"http:\/\/www.banbanli.net\/blog\/?p=36","title":{"rendered":"MySQL restart failure, but actully is running"},"content":{"rendered":"<p>Re: \u555f\u52d5Mysql\u767c\u751f\u554f\u984c<br \/>\nDear hsieh:<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u5982\u4e0b<\/p>\n<p>\u4fee\u6539 \/etc\/rc.d\/init.d\/mysqld<br \/>\n<!--more--><\/p>\n<p>if [ $ret -eq 0 ]; then<br \/>\nfor x in 1 2 3 4 5 6 7 8 9 10; do<br \/>\nif [ -n &#8220;`\/usr\/bin\/mysqladmin ping 2> \/dev\/null`&#8221; ]; then<br \/>\nbreak;<br \/>\nelse<br \/>\nsleep 1;<br \/>\nfi<br \/>\ndone<br \/>\nif !([ -n &#8220;`\/usr\/bin\/mysqladmin ping 2> \/dev\/null`&#8221; ]); then<br \/>\necho &#8220;Timeout error occurred trying to start MySQL Daemon.&#8221;<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/false<br \/>\nelse<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/true<br \/>\nfi<br \/>\nelse<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/false<br \/>\nfi<\/p>\n<p>\u5c07\u4ee5\u4e0a\u5169\u500b ping \u7684\u5f8c\u9762\u5404\u52a0\u4e0a -u<\/p>\n<p>if [ $ret -eq 0 ]; then<br \/>\nfor x in 1 2 3 4 5 6 7 8 9 10; do<br \/>\nif [ -n &#8220;`\/usr\/bin\/mysqladmin ping -u 2> \/dev\/null`&#8221; ]; then<br \/>\nbreak;<br \/>\nelse<br \/>\nsleep 1;<br \/>\nfi<br \/>\ndone<br \/>\nif !([ -n &#8220;`\/usr\/bin\/mysqladmin ping -u 2> \/dev\/null`&#8221; ]); then<br \/>\necho &#8220;Timeout error occurred trying to start MySQL Daemon.&#8221;<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/false<br \/>\nelse<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/true<br \/>\nfi<br \/>\nelse<br \/>\naction $&#8221;Starting $prog: &#8221; \/bin\/false<br \/>\nfi<\/p>\n<p>\u9019\u6a23\u5c31\u53ef\u4ee5\u4e86.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Re: \u555f\u52d5Mysql\u767c\u751f\u554f\u984c Dear hsieh: \u89e3\u6c7a\u65b9\u6cd5\u5982\u4e0b \u4fee\u6539 \/etc\/rc.d\/init.d\/mysqld<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":0,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}