{"id":806,"date":"2019-05-13T15:02:34","date_gmt":"2019-05-13T07:02:34","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=806"},"modified":"2024-05-16T16:49:10","modified_gmt":"2024-05-16T08:49:10","slug":"bt-mysql-shou-hu","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/bt-mysql-shou-hu.html","title":{"rendered":"\u5b9d\u5854\u9762\u677fMySql\u8fdb\u7a0b\u5b88\u62a4\u76d1\u63a7\u811a\u672c_\u6570\u636e\u5e93\u5173\u95ed\u540e\u81ea\u52a8\u91cd\u542f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u524d\u6bb5\u65f6\u95f4\u5976\u7238\u628a\u4e00\u53f0VPS\u73af\u5883\u4eceLNMP\u6362\u5230\u4e86\u5b9d\u5854\u9762\u677f\uff0c\u7ed3\u679c\u7ecf\u5e38<strong>MySQL\u6570\u636e\u5e93<\/strong>\u83ab\u540d\u5176\u5999\u7684<strong>\u81ea\u52a8\u505c\u6b62<\/strong>\uff0c\u770b\u65e5\u5fd7\u4e5f\u6ca1\u770b\u51fa\u6765\u662f\u4ec0\u4e48\u95ee\u9898\uff0c\u6240\u4ee5\u5c31\u53ea\u80fd\u6765\u4e00\u62db\u6700\u7b80\u5355\u7684<strong>\u6570\u636e\u5e93\u8fdb\u7a0b\u5b88\u62a4<\/strong>\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9d\u5854\u9762\u677f\u6dfb\u52a0MySQL\u8fdb\u7a0b\u5b88\u62a4\u811a\u672c\u65b9\u6cd5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728<a title=\"\u67e5\u770b\u66f4\u591a\u201c\u5b9d\u5854\u9762\u677f\u201d\u7684\u6587\u7ae0\" href=\"https:\/\/blog.naibabiji.com\/tutorial\/install-bt.html\">\u5b9d\u5854\u9762\u677f<\/a>\u540e\u53f0\uff0c\u70b9\u51fb\u8ba1\u5212\u4efb\u52a1\uff0c\u7136\u540e\u6dfb\u52a0\u4e00\u4e2aShell\u811a\u672c\u3002\u540d\u5b57\u81ea\u9009\uff0c\u6267\u884c\u5468\u671f\u6309\u5206\u949f\u6267\u884c\uff0c\u5976\u7238\u8fd9\u91cc\u662f\u8bbe\u7f6e\u7684\u5341\u5206\u949f\uff0c\u811a\u672c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pgrep -x mysqld &amp;> \/dev\/null<br>if [ $? -ne 0 ];then<br>bash \/www\/server\/panel\/script\/rememory.sh<br>\/etc\/init.d\/mysqld start<br>fi<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/05\/1557730268-Xnip2019-05-13_14-48-02-min.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1434\" height=\"994\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/05\/1557730268-Xnip2019-05-13_14-48-02-min.jpg\" alt=\"\u5b9d\u5854\u9762\u677f\u6570\u636e\u5e93\u5b88\u62a4\" class=\"wp-image-936\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u5916\u5728MySQL\u7684\u6027\u80fd\u4f18\u5316\u91cc\u9762\uff0c\u8bbe\u7f6e\u4e86\u4e00\u4e0b\uff0c\u7136\u540e\u4fdd\u5b58\u4e86\u53d1\u73b0\u5e76\u6ca1\u4ec0\u4e48\u5375\u7528\uff0cMySQL\u4f9d\u7136\u505c\u6b62\u8fd0\u884c\uff0c\u4ee3\u7801\u5982\u4e0b\uff0c\u7a7a\u4e86\u518d\u6765\u5177\u4f53\u7814\u7a76\u95ee\u9898\u6240\u5728\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">190513 14:39:11 [Note] \/www\/server\/mysql\/bin\/mysqld: Normal shutdown\n\n190513 14:39:11 [Note] Event Scheduler: Purging the queue. 0 events\n190513 14:39:11  InnoDB: Starting shutdown...\n190513 14:39:12  InnoDB: Shutdown completed; log sequence number 618693401\n190513 14:39:12 [Note] \/www\/server\/mysql\/bin\/mysqld: Shutdown complete\n\n190513 14:39:13 [Note] Plugin 'FEDERATED' is disabled.\n190513 14:39:13 InnoDB: The InnoDB memory heap is disabled\n190513 14:39:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins\n190513 14:39:13 InnoDB: Compressed tables use zlib 1.2.7\n190513 14:39:13 InnoDB: Using Linux native AIO\n190513 14:39:13 InnoDB: Initializing buffer pool, size = 256.0M\n190513 14:39:13 InnoDB: Completed initialization of buffer pool\n190513 14:39:13 InnoDB: highest supported file format is Barracuda.\n190513 14:39:14  InnoDB: Waiting for the background threads to start\n190513 14:39:15 InnoDB: 5.5.57 started; log sequence number 618693401\n190513 14:39:15 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306\n190513 14:39:15 [Note]   - '0.0.0.0' resolves to '0.0.0.0';\n190513 14:39:15 [Note] Server socket created on IP: '0.0.0.0'.\n190513 14:39:15 [Warning] 'user' entry 'x@%' has both a password and an authentication plugin specified. The password will be ignored.\n190513 14:39:15 [Note] Event Scheduler: Loaded 0 events\n190513 14:39:15 [Note] \/www\/server\/mysql\/bin\/mysqld: ready for connections.\nVersion: '5.5.57-log'  socket: '\/tmp\/mysql.sock'  port: 3306  Source distribution\n190513 14:39:21 [Warning] IP address '2' has been resolved to the host name '2.vultr.com', which resembles IPv4-address itself.\n190513 14:39:43 [Warning] IP address '9' has been resolved to the host name '9.vultr.com', which resembles IPv4-address itself.\n190513 14:39:48 [Warning] IP address '8' has been resolved to the host name '8.vultr.com', which resembles IPv4-address itself.\n190513 14:40:12 [Warning] IP address '9' has been resolved to the host name '9.vultr.com', which resembles IPv4-address itself.\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">05\u670814\u65e5\u66f4\u65b0\uff1a\u4f9d\u7136\u6b7b\uff0c\u8c03\u6574\u4e86\u4e0bswap\u5927\u5c0f\u518d\u89c2\u5bdf\u4e0b\u3002\u7136\u540e\u8fd8\u91cd\u542f\u4e86\u4e00\u6b21\u670d\u52a1\u5668\u3002\u5f00\u673a\u540e\u5185\u5b58\u4f7f\u7528600+\uff0c\u8fd8\u7a7a200+<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;806&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u5b9d\u5854\u9762\u677fMySql\u8fdb\u7a0b\u5b88\u62a4\u76d1\u63a7\u811a\u672c_\u6570\u636e\u5e93\u5173\u95ed\u540e\u81ea\u52a8\u91cd\u542f&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">\u7ed9\u672c\u6587\u6253\u5206 post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u6bb5\u65f6\u95f4\u5976\u7238\u628a\u4e00\u53f0VPS\u73af\u5883\u4eceLNMP\u6362\u5230\u4e86\u5b9d\u5854\u9762\u677f\uff0c\u7ed3\u679c\u7ecf\u5e38MySQL\u6570\u636e\u5e93\u83ab\u540d\u5176\u5999\u7684\u81ea\u52a8\u505c\u6b62\uff0c\u770b\u65e5\u5fd7\u4e5f\u6ca1\u770b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":937,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u5b9d\u5854\u9762\u677fMySql\u8fdb\u7a0b\u5b88\u62a4\u76d1\u63a7\u811a\u672c_\u6570\u636e\u5e93\u5173\u95ed\u540e\u81ea\u52a8\u91cd\u542f - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u524d\u6bb5\u65f6\u95f4\u5976\u7238\u628a\u4e00\u53f0VPS\u73af\u5883\u4eceLNMP\u6362\u5230\u4e86\u5b9d\u5854\u9762\u677f\uff0c\u7ed3\u679c\u7ecf\u5e38 MySQL\u6570\u636e\u5e93 \u83ab\u540d\u5176\u5999\u7684 \u81ea\u52a8\u505c\u6b62 \uff0c\u770b\u65e5\u5fd7\u4e5f\u6ca1\u770b\u51fa\u6765\u662f\u4ec0\u4e48\u95ee\u9898\uff0c\u6240\u4ee5\u5c31\u53ea\u80fd\u6765\u4e00\u62db\u6700\u7b80\u5355\u7684 \u6570\u636e\u5e93\u8fdb\u7a0b\u5b88\u62a4 \u4e86\u3002 \u5b9d\u5854\u9762\u677f\u6dfb\u52a0MySQL\u8fdb\u7a0b\u5b88\u62a4\u811a\u672c\u65b9\u6cd5 \u5728 \u5b9d\u5854\u9762\u677f \u540e\u53f0\uff0c\u70b9\u51fb\u8ba1\u5212\u4efb\u52a1\uff0c\u7136\u540e\u6dfb\u52a0\u4e00\u4e2aShell\u811a\u672c\u3002\u540d\u5b57\u81ea\u9009\uff0c\u6267\u884c\u5468\u671f\u6309\u5206\u949f\u6267\u884c\uff0c\u5976\u7238\u8fd9"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/937"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}