{"id":2714,"date":"2016-12-08T10:00:24","date_gmt":"2016-12-08T01:00:24","guid":{"rendered":"https:\/\/www.sria.co.jp\/blog\/?p=2714"},"modified":"2016-12-07T19:08:00","modified_gmt":"2016-12-07T10:08:00","slug":"update-php-and-mysql-our-servers","status":"publish","type":"post","link":"https:\/\/www.sria.co.jp\/blog\/2016\/12\/update-php-and-mysql-our-servers\/","title":{"rendered":"\u4f1a\u793e\u30b5\u30a4\u30c8\u306ePHP\/MySQL\u3092\u4e00\u6c17\u306b\u66f4\u65b0\u3057\u305f\u8a71"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<br \/>\n\u3054\u98ef\u3084\u9eba\u304c\u5927\u76db\u308a\u7121\u6599\u306a\u3089\u5927\u4f53\u305d\u3046\u3057\u3066\u3082\u3089\u3046\u6728\u6751\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5148\u65e5\u3001\u4eca\u5f8c\u306b\u5099\u3048\u3066Web\u30b5\u30fc\u30d0\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u884c\u3044\u307e\u3057\u305f\u3002<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u3084\u5404\u7a2e\u8abf\u6574\u304c\u4e3b\u306a\u4f5c\u696d\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u3084\u6280\u8853\u9762\u3067\u306e\u8abf\u67fb\u3082\u517c\u306d\u3066PHP\u3068MySQL\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u540c\u6642\u306b\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>PHP\u3092<strong>7.0<\/strong>\u3078\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/li>\n<li>MySQL\u3082<strong>5.7<\/strong>\u3078\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u3068\u3044\u3046\u69cb\u6210\u306b\u4e0a\u3052\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u4f5c\u696d\u6642\u70b9\u3067\u306e\u6700\u65b0\u7248\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001PHP\u304c\u76f4\u5f8c\u306b7.1\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f&#8230;\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306f\u3001\u305d\u3093\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u4e0a\u3067\u884c\u3063\u305f\u624b\u9806\u3084\u306f\u307e\u3063\u305f\u30dd\u30a4\u30f3\u30c8\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><br \/>\n&nbsp;<\/p>\n<h3 id=\"-\">\u4e8b\u524d\u8abf\u67fb<\/h3>\n<p>\u307e\u305a\u306f\u73fe\u5728\u5229\u7528\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u524d\u306f\u3053\u3093\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>PHP 5.3<\/li>\n<li>MySQL 5.1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u30db\u30b9\u30c8\u304cCentOS6\u306a\u306e\u3067\u3001\u78ba\u304b\u306b\u3053\u306e\u8fba\u304c\u516c\u5f0f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6700\u65b0\u7248\u3067\u3059\u3002<br \/>\n(\u3061\u3087\u3063\u3068\u524d\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306a\u3093\u304b\u306f\u3053\u3093\u306a\u69cb\u6210\u3060\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u6700\u8fd1\u306fMySQL\u306f\u3082\u3046\u3061\u3087\u3063\u3068\u65b0\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002)<\/p>\n<p>&nbsp;<\/p>\n<p>\u73fe\u5728\u8a2d\u7f6e\u3055\u308c\u3066\u3044\u308bPHP\/MySQL\u306b\u4f9d\u5b58\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fWordPress\u304f\u3089\u3044\u3067\u3059\u304c\u3001<a href=\"http:\/\/wpdocs.osdn.jp\/%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%AE%E7%94%A8%E6%84%8F\">\u63a8\u5968\u69cb\u6210<\/a>\u306fPHP 5.6\/MySQL 5.6\u306a\u306e\u3067\u6700\u65b0\u7248\u3067\u3042\u308c\u3070\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\nPHP 7\u5411\u3051\u306e\u5bfe\u5fdc\u304c4.3\u3067\u884c\u308f\u308c\u3066\u3044\u308b\u4e8b\u3082<a href=\"http:\/\/wpdocs.osdn.jp\/Version_4.3\">\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>\u304b\u3089\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&#8230;\u3053\u3053\u307e\u3067\u306e\u8abf\u67fb\u3092\u8e0f\u307e\u3048\u308b\u3068\u554f\u984c\u306a\u3055\u305d\u3046\u306a\u96f0\u56f2\u6c17\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u304c\u3001\u4e07\u304c\u4e00\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u306f\u4e00\u5927\u4e8b\u306a\u306e\u3067\u3001Vagrant\u3092\u5229\u7528\u3057\u3066\u540c\u3058\u72b6\u614b\u3092\u518d\u73fe\u3057\u305f\u4e0a\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u56de\u308a\u306e\u30c1\u30a7\u30c3\u30af\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"php-\">PHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n<p>\u307e\u305a\u306fPHP\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f55\u304b\u3057\u3089\u4e0d\u90fd\u5408\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u3044\u3046\u4e88\u611f\u304c\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u65e2\u5b58\u306e\u74b0\u5883\u3092\u7f6e\u304d\u63db\u3048\u3066php.ini\u3092\u518d\u8a2d\u5b9a\u3057\u3066\u5b8c\u4e86\u3067\u3057\u305f\u3002<br \/>\n\u7279\u306b\u51dd\u3063\u305f\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u8a33\u3067\u306f\u306a\u304f\u307b\u307c\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u8fd1\u3044\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u305b\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u52d5\u4f5c\u78ba\u8a8d\u3082\u7279\u306b\u554f\u984c\u306a\u3057\u3067\u3001\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"mysql-\">MySQL\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h3>\n<p>\u304a\u6b21\u306fMySQL\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3059\u304c\u3001PHP\u3068\u306f\u6253\u3063\u3066\u5909\u308f\u3063\u3066\u3001\u3053\u3061\u3089\u306f\u5c11\u3057\u96e3\u822a\u3057\u307e\u3057\u305f&#8230;\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306e\u8d77\u52d5\u6642\u306b\u3001<code class=\"md-code\">mysql.user<\/code>\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u6210\u304c\u7570\u306a\u308b\u305b\u3044\u304b<code class=\"md-code\">mysql.user tables is damaged. Please run mysql_upgrade.<\/code>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u5358\u7d14\u306b\u65e2\u5b58\u306e\u74b0\u5883\u3092\u5165\u308c\u66ff\u3048\u308b\u3060\u3051\u3067\u306f\u8d77\u52d5\u3057\u306a\u304b\u3063\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u308c\u3067\u3042\u308c\u3070\u3001<\/p>\n<pre class=\"lang:default decode:true \">$\u00a0\/usr\/bin\/mysqld_safe\u00a0--skip-grant-tables &amp;\r\n$\u00a0mysql_upgrade<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b<code class=\"md-code\">mysqld_safe<\/code>\u3092\u6a29\u9650\u56de\u308a\u306e\u30c1\u30a7\u30c3\u30af\u3092\u30d1\u30b9\u3059\u308b\u72b6\u614b(\u2252mysql.user\u3092\u5229\u7528\u3057\u306a\u3044)\u3067\u8d77\u52d5\u3057\u3066\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u4fee\u5fa9\u306f\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u5ea6\u306f\u901a\u5e38\u306eMySQL\u3092\u8d77\u52d5\u3059\u308b\u3068\u4e00\u90e8\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8272\u3005\u8abf\u67fb\u3057\u3066\u307f\u308b\u3068\u3001<code class=\"md-code\">my.cnf<\/code>\u306b<code class=\"md-code\">old_passwords=1<\/code>\u306e\u8a18\u8ff0\u304c&#8230;\u3002<br \/>\nMySQL 5.7.5\u304b\u3089\u306f<code class=\"md-code\">old_passwords<\/code>\u304c<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/password-hashing.html\">\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308a<\/a>\u3001\u5b8c\u5168\u306b\u53e4\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u4f55\u3068\u304b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u6d41\u77f3\u306b\u73fe\u72b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5f62\u5f0f\u5909\u63db\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u524d\u306b\u4e88\u3081<code class=\"md-code\">old_passwords<\/code>\u3092\u89e3\u9664\u3057\u305f\u4e0a\u3067\u3001\u30cf\u30c3\u30b7\u30e5\u304c\u77ed\u3044\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u8a2d\u5b9a\u3059\u308b\u4e8b\u3067\u89e3\u6c7a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u901a\u308a\u306e\u4e88\u9632\u7b56\u3068\u624b\u9806\u3092\u78ba\u8a8d\u3057\u305f\u6240\u3067\u518d\u5ea6\u901a\u3057\u3067\u4f5c\u696d\u3057\u305f\u6240\u3001\u554f\u984c\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u3053\u3061\u3089\u306e\u52d5\u4f5c\u78ba\u8a8d\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001\u7121\u4e8b\u306b\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"-\">\u304a\u308f\u308a\u306b<\/h3>\n<p>\u4eca\u56de\u901a\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u3001\u4e8b\u524d\u306b\u624b\u5143\u306e\u74b0\u5883\u3067\u691c\u8a3c\u3057\u3066\u3044\u305f\u3068\u3044\u3046\u306e\u306f\u975e\u5e38\u306b\u5927\u304d\u304b\u3063\u305f\u3067\u3059\u3002<br \/>\n\u7279\u306bMySQL\u56de\u308a\u306f\u304b\u306a\u308a\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u3044\u308b\u70ba\u3001\u4f55\u304b\u3057\u3089\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u4e88\u611f\u304c\u3057\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u5927\u6b63\u89e3\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u5f8c\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3067\u3059\u304c\u3001\u7d99\u7d9a\u7684\u306b\u884c\u3046\u306e\u306f\u3082\u3061\u308d\u3093\u3001EOL\u3082\u6c17\u306b\u3057\u3064\u3064\u9032\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nPHP\u306e\u5834\u5408\u3001<a href=\"http:\/\/php.net\/supported-versions.php\">7.0\u30685.6\u306eEOL\u306f\u5927\u4f532\u5e74\u5f8c\u307e\u3067<\/a>\u306a\u306e\u3067\u3001\u305d\u308c\u307e\u3067\u306b\u306fPHP7.1\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<br \/>\nMySQL\u306f<a href=\"https:\/\/faq.oracle.co.jp\/app\/answers\/detail\/a_id\/5236\/~\/mysql%E8%A3%BD%E5%93%81%E3%81%AE%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E6%9C%9F%E9%96%93%E3%81%AF%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F\">5.7\u306e\u5834\u5408\u306f2020\u5e74\u307e\u3067<\/a>\u306a\u306e\u3067\u3001\u3053\u3061\u3089\u306f\u3057\u3070\u3089\u304f\u3053\u306e\u307e\u307e\u3067\u3082\u826f\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3068\u306f\u3044\u3048\u3001<a href=\"http:\/\/nippondanji.blogspot.jp\/2016\/09\/mysql-800-development-milestone-release.html\">\u65e2\u306b8.0\u306e\u8db3\u97f3<\/a>\u3082\u805e\u3053\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3082\u51fa\u305f\u3089\u662f\u975e\u8a66\u3057\u3066\u307f\u305f\u3044\u306a\u3041\u3068\u3044\u3046\u306e\u304c\u6b63\u76f4\u306a\u611f\u60f3\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 \u3054\u98ef\u3084\u9eba\u304c\u5927\u76db\u308a\u7121\u6599\u306a\u3089\u5927\u4f53\u305d\u3046\u3057\u3066\u3082\u3089\u3046\u6728\u6751\u3067\u3059\u3002 &nbsp; \u5148\u65e5\u3001\u4eca\u5f8c\u306b\u5099\u3048\u3066Web\u30b5\u30fc\u30d0\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u884c\u3044\u307e\u3057\u305f\u3002 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u3084\u5404\u7a2e\u8abf\u6574\u304c\u4e3b\u306a\u4f5c\u696d\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u3084\u6280\u8853&#8230;<\/p>\n","protected":false},"author":5,"featured_media":328,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,8,9],"tags":[73,60,50],"_links":{"self":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2714"}],"collection":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=2714"}],"version-history":[{"count":13,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2714\/revisions"}],"predecessor-version":[{"id":2729,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2714\/revisions\/2729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media\/328"}],"wp:attachment":[{"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=2714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=2714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sria.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=2714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}