{"id":169,"date":"2023-07-18T20:05:53","date_gmt":"2023-04-08T09:36:40","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T21:20:32","modified_gmt":"2025-07-31T12:20:32","slug":"mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u6642\u3005\u3001MySQL\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u7834\u640d\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3001\u305d\u308c\u3089\u306b\u683c\u7d0d\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u53d6\u308c\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u306e\u8aad\u307f\u53d6\u308a\u3092\u8a66\u307f\u308b\u3068\u3001\u901a\u5e38\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30fc\u30d6\u30eb\u304c\u7834\u640d\u3059\u308b\u4e00\u822c\u7684\u306a\u539f\u56e0\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>The MySQL server stops in middle of a write.<\/li>\n<li>An external program modifies a table that\u2019s simultaneously being modified by the server.<\/li>\n<li>The machine is shut down unexpectedly.<\/li>\n<li>The computer hardware fails.<\/li>\n<li>There\u2019s a software bug somewhere in the MySQL code.<\/li>\n<\/ul>\n<p>\u3082\u3057\u30c6\u30fc\u30d6\u30eb\u306e\u4e00\u3064\u304c\u7834\u640d\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3084\u30c6\u30fc\u30d6\u30eb\u306e\u4fee\u5fa9\u3092\u8a66\u307f\u308b\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u3079\u304d\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306e\u640d\u5931\u30ea\u30b9\u30af\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl stop mysql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aRocky Linux\u306a\u3069\u306e\u4e00\u90e8\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u306f\u300cmysqld\u300d\u3068\u547c\u3070\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u65b0\u3057\u3044\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002Ubuntu\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\/var\/lib\/mysql\/\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-r<\/span> \/var\/lib\/mysql \/var\/lib\/<mark>mysql_bkp<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001\u5b9f\u969b\u306b\u30c6\u30fc\u30d6\u30eb\u304c\u7834\u640d\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u8abf\u67fb\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002\u30c6\u30fc\u30d6\u30eb\u304cMyISAM\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001MySQL\u3092\u518d\u8d77\u52d5\u3057\u3001MySQL\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089CHECK TABLE\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u7834\u640d\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mysql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"mysql&gt;\">CHECK TABLE <mark>table_name<\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u51fa\u529b\u306b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u7834\u640d\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u77e5\u3089\u305b\u307e\u3059\u3002\u3082\u3057\u3082MyISAM\u30c6\u30fc\u30d6\u30eb\u304c\u5b9f\u969b\u306b\u7834\u640d\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u901a\u5e38\u306fREPAIR TABLE\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3067\u4fee\u5fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"mysql&gt;\">REPAIR TABLE <mark>table_name<\/mark><span class=\"token punctuation\">;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4fee\u7406\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u51fa\u529b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+ | Table | Op | Msg_type | Msg_text | +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+ | <mark>database_name<\/mark>.<mark>table_name<\/mark> | repair | status | OK | +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u30c6\u30fc\u30d6\u30eb\u304c\u307e\u3060\u7834\u640d\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001MySQL\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u3059\u308b\u305f\u3081\u306e\u3044\u304f\u3064\u304b\u306e\u4ee3\u66ff\u624b\u6cd5\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3066\u3001\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u304cInnoDB\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u4fee\u5fa9\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306f\u7570\u306a\u308a\u307e\u3059\u3002InnoDB\u306fMySQL\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3067\u3042\u308a\u3001\u30d0\u30fc\u30b8\u30e7\u30f38.0\u4ee5\u964d\u3067\u306f\u81ea\u52d5\u7684\u306a\u7834\u640d\u30c1\u30a7\u30c3\u30af\u3068\u4fee\u5fa9\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002InnoDB\u306f\u3001\u8aad\u307f\u8fbc\u3093\u3060\u3059\u3079\u3066\u306e\u30da\u30fc\u30b8\u306b\u5bfe\u3057\u3066\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u3092\u5b9f\u884c\u3057\u3066\u7834\u640d\u3057\u305f\u30da\u30fc\u30b8\u3092\u691c\u51fa\u3057\u3001\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u306e\u4e0d\u4e00\u81f4\u304c\u3042\u308c\u3070\u81ea\u52d5\u7684\u306bMySQL\u30b5\u30fc\u30d0\u30fc\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<p>InnoDB\u30c6\u30fc\u30d6\u30eb\u306e\u4fee\u5fa9\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3002InnoDB\u306f\u30af\u30e9\u30c3\u30b7\u30e5\u56de\u5fa9\u6a5f\u69cb\u3092\u5099\u3048\u3066\u304a\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u307b\u3068\u3093\u3069\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u7834\u640d\u3057\u305fInnoDB\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u751f\u3058\u308b\u5834\u5408\u306f\u3001\u300c\u30c0\u30f3\u30d7\u3068\u30ea\u30ed\u30fc\u30c9\u300d\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092MySQL\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3001\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u56de\u5fa9\u3057\u3001mysqldump\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u306e\u8ad6\u7406\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3057\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u69cb\u9020\u3068\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u624b\u9806\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3092\u8e0f\u307e\u3048\u3066\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3059\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mysql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u30b5\u30fc\u30d0\u30fc\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u307e\u307e\u3082\u3057\u304f\u306f\u30a2\u30af\u30bb\u30b9\u4e0d\u80fd\u306a\u5834\u5408\u3001InnoDB\u306eforce_recovery\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u5f79\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u306fmysqld.cnf\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u884c\u3048\u307e\u3059\u3002Ubuntu\u3084Debian\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\u3001etc\/mysql\u306b\u3042\u308a\u307e\u3059\u3002Red Hat\u3084Rocky\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\u3001\/etc\/my.cnf.d\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c[mysqld]\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3001\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/mysql\/mysql.conf.d\/mysqld.cnf\u306e\u65e5\u672c\u8a9e\u3078\u306e\u6587\u8a00\u306f\u300c\/etc\/mysql\/mysql.conf.d\/mysqld.cnf\u300d\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n[mysqld]\r\n. . .\r\n<mark>innodb_force_recovery=1<\/mark>\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305f\u5834\u5408\u306f\u3001mysqldump\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u30c7\u30fc\u30bf\u3092\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u30c0\u30f3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u81ea\u7531\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306fout.sql\u3068\u540d\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mysqldump <mark>database_name<\/mark> <mark>table_name<\/mark> <span class=\"token operator\">&gt;<\/span> <mark>out<\/mark>.sql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002MySQL\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u518d\u5ea6\u958b\u304b\u306a\u304f\u3066\u3082\u3088\u3044\u3088\u3046\u306b\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mysql <span class=\"token parameter variable\">-u<\/span> <mark>user<\/mark> <span class=\"token parameter variable\">-p<\/span> <span class=\"token parameter variable\">&#8211;execute<\/span><span class=\"token operator\">=<\/span><span class=\"token string\">&#8220;DROP TABLE <mark>database_name<\/mark>.<mark>table_name<\/mark>&#8220;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u5f8c\u3001\u4f5c\u6210\u3057\u305f\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3092\u5fa9\u5143\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mysql <span class=\"token parameter variable\">-u<\/span> <mark>user<\/mark> <span class=\"token parameter variable\">-p<\/span> <span class=\"token operator\">&lt;<\/span> <mark>out<\/mark>.sql<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>InnoDB\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u306f\u3001\u53e4\u3044MyISAM\u30a8\u30f3\u30b8\u30f3\u3088\u308a\u3082\u4e00\u822c\u7684\u306b\u8010\u969c\u5bb3\u6027\u304c\u9ad8\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002InnoDB\u3092\u4f7f\u7528\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u3082\u7834\u640d\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u81ea\u52d5\u56de\u5fa9\u6a5f\u80fd\u306e\u304a\u304b\u3052\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u7834\u640d\u3084\u30af\u30e9\u30c3\u30b7\u30e5\u306e\u30ea\u30b9\u30af\u306f\u8457\u3057\u304f\u4f4e\u4e0b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u6642\u3005\u3001MySQL\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u7834\u640d\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3001\u305d\u308c\u3089\u306b\u683c\u7d0d\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u53d6\u308c\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u306e\u8aad\u307f\u53d6\u308a\u3092\u8a66\u307f\u308b\u3068\u3001\u901a\u5e38\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u3053 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14,26],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-14","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-08T09:36:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:20:32+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-04-08T09:36:40+00:00\",\"dateModified\":\"2025-07-31T12:20:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5","og_description":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-08T09:36:40+00:00","article_modified_time":"2025-07-31T12:20:32+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-04-08T09:36:40+00:00","dateModified":"2025-07-31T12:20:32+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"MySQL\u3067\u7834\u640d\u3057\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/mysql%e3%81%a7%e7%a0%b4%e6%90%8d%e3%81%97%e3%81%9f%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%bf%ae%e5%be%a9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":325726,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions\/325726"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}