{"id":2245,"date":"2015-02-03T14:52:49","date_gmt":"2015-02-03T05:52:49","guid":{"rendered":"http:\/\/taitan916.info\/blog\/?p=2245"},"modified":"2024-03-04T17:41:11","modified_gmt":"2024-03-04T08:41:11","slug":"post-2245","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/2245","title":{"rendered":"adminer\u3067MySQL\u306b\u63a5\u7d9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u306e\u5bfe\u5fdc\u65b9\u6cd5"},"content":{"rendered":"<p>\u65b0\u3057\u304f\u69cb\u7bc9\u3057\u305f\u30b5\u30fc\u30d0\u306badminer\u3092\u5165\u308c\u3066\u63a5\u7d9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u300cmysqlnd cannot connect to MySQL 4.1\uff5e\uff5e\u300d\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u63a5\u7d9a\u51fa\u6765\u306a\u304b\u3063\u305f\u3002\u4ee5\u4e0b\u306b\u5bfe\u5fdc\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30a8\u30e9\u30fc\u5185\u5bb9<\/h2>\n<p>\u4ee5\u4e0b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5168\u6587\u3002<\/p>\n<blockquote><p>mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u7ffb\u8a33\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3002<\/p>\n<blockquote><p>mysqlnd \u306f\u3001\u53e4\u3044\u5b89\u5168\u3067\u306a\u3044\u8a8d\u8a3c\u3092\u4f7f\u7528\u3057\u3066 MySQL 4.1 \u4ee5\u964d\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3002\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9 SET PASSWORD = PASSWORD('your_existing_password') \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u3001\u3088\u308a\u5b89\u5168\u306a\u30cf\u30c3\u30b7\u30e5\u5024\u304c mysql.user \u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u304c PHP 5.2 \u4ee5\u524d\u3067\u5b9f\u884c\u3055\u308c\u308b\u4ed6\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001my.cnf \u30d5\u30a1\u30a4\u30eb\u304b\u3089 old-passwords \u30d5\u30e9\u30b0\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<p>\u30b5\u30fc\u30d0\u306bSSH\u63a5\u7d9a\u3057\u4ee5\u4e0b\u306e\u901a\u308a\u9032\u3081\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#MySQL\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\r\n\/etc\/my.conf\r\n\r\n#\u4ee5\u4e0b\u306e\u9805\u76ee\u304c\u3042\u308c\u3070\u524a\u9664\r\nold_passwords=1\r\n\r\n#MySQL\u306b\u63a5\u7d9a\r\nmysql -u [\u30e6\u30fc\u30b6\u30fc\u540d] -p\r\n\r\n#\u4ee5\u4e0b\u3092\u5b9f\u884c\r\nset password for '\u30e6\u30fc\u30b6\u30fc\u540d'@'localhost\u3084\u30db\u30b9\u30c8\u540d' = password('\u30d1\u30b9\u30ef\u30fc\u30c9');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u3057\u304f\u69cb\u7bc9\u3057\u305f\u30b5\u30fc\u30d0\u306badminer\u3092\u5165\u308c\u3066\u63a5\u7d9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u300cmysqlnd ... <\/p>\n","protected":false},"author":1,"featured_media":1072,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=2245"}],"version-history":[{"count":3,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2245\/revisions"}],"predecessor-version":[{"id":5359,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/2245\/revisions\/5359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1072"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=2245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=2245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=2245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}