{"id":238,"date":"2020-05-11T12:20:46","date_gmt":"2020-05-11T03:20:46","guid":{"rendered":"https:\/\/beanhouse.dip.jp\/wordpress\/?p=238"},"modified":"2021-09-08T17:45:00","modified_gmt":"2021-09-08T08:45:00","slug":"problem-mariadb-dump","status":"publish","type":"post","link":"https:\/\/beanhouse.org\/wordpress\/?p=238","title":{"rendered":"\u3010\u5099\u5fd8\u9332\u3011MariaDB\u3067dump\u51fa\u529b\u306e\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3057\u305f\u624b\u9806"},"content":{"rendered":"<p class=\"wpwc-reading-time\">\u3053\u306e\u8a18\u4e8b\u306f\u3060\u3044\u305f\u3044 4 \u5206\u307b\u3069\u3067\u8aad\u3081\u307e\u3059\u3002<\/p>\n<p>\u305d\u308d\u305d\u308d\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3068\u304b\u306a\u3044\u3068\u3068\u601d\u3063\u3066dump\u3092\u53d6\u308d\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u7684\u306bdump\u306e\u51fa\u529b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u305d\u306e\u6642\u306b\u884c\u3063\u305f\u5185\u5bb9\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"655\" src=\"https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920-1024x655.jpg\" alt=\"mistake\" class=\"wp-image-239\" srcset=\"https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920-1024x655.jpg 1024w, https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920-300x192.jpg 300w, https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920-768x491.jpg 768w, https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920-1536x982.jpg 1536w, https:\/\/beanhouse.org\/wordpress\/wp-content\/uploads\/2020\/05\/mistake-1966448_1920.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#%E7%92%B0%E5%A2%83\" >\u74b0\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#dump%E5%87%BA%E5%8A%9B%E5%AE%9F%E8%A1%8C\" >dump\u51fa\u529b\u5b9f\u884c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E6%9B%B4%E6%96%B0%E3%81%AE%E5%8F%8D%E6%98%A0%E8%A8%AD%E5%AE%9A\" >\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u66f4\u65b0\u306e\u53cd\u6620\u8a2d\u5b9a<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#MariaDB%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%82%A2%E3%83%83%E3%83%97\" >MariaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#mysql_upgrade\" >mysql_upgrade<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/beanhouse.org\/wordpress\/?p=238\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%92%B0%E5%A2%83\"><\/span>\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># cat \/etc\/redhat-release\nCentOS Linux release 7.8.2003 (Core)<\/pre>\n\n\n\n<p>MariaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># mysql -V\nmysql  Ver 15.1 Distrib 10.4.12-MariaDB, for Linux (x86_64) using readline 5.1<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"dump%E5%87%BA%E5%8A%9B%E5%AE%9F%E8%A1%8C\"><\/span>dump\u51fa\u529b\u5b9f\u884c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>mysqldump\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066dump\u306e\u51fa\u529b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># mysqldump -u root -p -x --all-databases --events > dump.sql\nEnter password:\n\nmysqldump: Couldn't execute 'show events': Cannot proceed, because event scheduler is disabled (1577)<\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u8abf\u3079\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E6%9B%B4%E6%96%B0%E3%81%AE%E5%8F%8D%E6%98%A0%E8%A8%AD%E5%AE%9A\"><\/span>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u66f4\u65b0\u306e\u53cd\u6620\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u7d50\u679c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u66f4\u65b0\u306e\u53cd\u6620\u8a2d\u5b9a\u3092\u3057\u306a\u3044\u3068\u3053\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3089\u3057\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3053\u3068\u306b\u95a2\u3057\u3066\u5fc3\u5f53\u305f\u308a\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MariaDB%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%82%A2%E3%83%83%E3%83%97\"><\/span>MariaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>dump\u3092\u51fa\u529b\u3059\u308b\u524d\u306bMariaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>CentOS7\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308bMariaDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># mysql -V\nmysql  Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.1<\/pre>\n\n\n\n<p>\u30d0\u30fc\u30b8\u30e7\u30f35.5.65\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306fWordPress\u306e\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3(10.x)\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u624b\u52d5\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u624b\u52d5\u3067\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u4f5c\u696d\u306b\u4e0d\u5099\u304c\u3042\u3063\u305f\u3082\u306e\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f5c\u696d\u524d\u3068\u3044\u3063\u3066\u3082\u6570\u65e5\u524d\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u81ea\u4f53\u306f\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u5168\u304f\u6c17\u3065\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"mysql_upgrade\"><\/span>mysql_upgrade<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>mysql_upgrade\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u306e\u53cd\u6620\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># mysql_upgrade -u root -p --verbose\nEnter password:\nLooking for 'mysql' as: mysql\nLooking for 'mysqlcheck' as: mysqlcheck\nPhase 1\/7: Checking and upgrading mysql database\nProcessing databases\n:\nPhase 7\/7: Running 'FLUSH PRIVILEGES'\nOK<\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u3082\u306a\u304f\u7121\u4e8b\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3044\u3063\u305f\u3093MariaDB\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># systemctl restart mariadb<\/pre>\n\n\n\n<p>\u6c17\u3092\u53d6\u308a\u76f4\u3057\u3066\u3001\u3082\u3046\u4e00\u5ea6\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>mysqldump\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066dump\u306e\u51fa\u529b\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># mysqldump -u root -p -x --all-databases --events > dump.sql\nEnter password:<\/pre>\n\n\n\n<p>\u6b63\u5e38\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u3082\u3067\u304d\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>mysql_upgrade\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308adump\u304c\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>dump\u3092\u51fa\u529b\u3059\u308b\u524d\u306eMariaDB\u309210.4\u306b\u624b\u52d5\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u3044\u305f\u4f5c\u696d\u3067\u66f4\u65b0\u306e\u53cd\u6620\u8a2d\u5b9a\u3068\u3084\u3089\u3092\u3084\u3063\u3066\u306a\u304b\u3063\u305f\u305f\u3081\u767a\u751f\u3057\u305f\u3093\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u624b\u52d5\u3067\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u306fPHP\u3067\u3082\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>PHP\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304cCentOS7\u3067\u306f\u81ea\u52d5\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306bCentOS7\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308bPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># php -v\nPHP 5.4.16 (cli) (built: Apr  1 2020 04:07:17)\nCopyright (c) 1997-2013 The PHP Group\nZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies<\/pre>\n\n\n\n<p>\u30d0\u30fc\u30b8\u30e7\u30f35.4.16\u3067\u3059\u3002\u3053\u308c\u3082WordPress\u306e\u63a8\u5968\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6e80\u305f\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u306a\u304c\u3089\u82e5\u5e72\u5931\u6557\u3057\u305f\u304b\u306a\u3063\u3066\u6c17\u304c\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eCentOS8\u306e\u60c5\u5831\u304c\u3042\u307e\u308a\u306a\u3055\u305d\u3046\u3060\u3063\u305f\u306e\u3067CentOS7\u3067\u305d\u306e\u307e\u307e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u7d99\u7d9a\u3057\u305f\u7d4c\u7def\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u96e3\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u304a\u308f\u308a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f\u3060\u3044\u305f\u3044 4 \u5206\u307b\u3069\u3067\u8aad\u3081\u307e\u3059\u3002 \u305d\u308d\u305d\u308d\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3068\u304b\u306a\u3044\u3068\u3068\u601d\u3063\u3066dump\u3092\u53d6\u308d\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u7d50\u679c\u7684\u306bdump\u306e\u51fa\u529b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u305d\u306e\u6642\u306b\u884c\u3063\u305f\u5185\u5bb9\u3092\u5099 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":241,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[12,58,80],"class_list":["post-238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos7","tag-mariadb","tag-memorandum"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":16,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":2162,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions\/2162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/241"}],"wp:attachment":[{"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beanhouse.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}