{"id":705,"date":"2019-03-05T03:15:18","date_gmt":"2019-03-05T03:15:18","guid":{"rendered":"https:\/\/monyog.jp\/?p=705"},"modified":"2019-03-07T02:11:52","modified_gmt":"2019-03-07T02:11:52","slug":"mysql%e6%a8%a9%e9%99%90","status":"publish","type":"post","link":"https:\/\/smart-style.main.jp\/monyogjp\/static\/document\/705\/index.html","title":{"rendered":"MySQL\u6a29\u9650"},"content":{"rendered":"
\u30af\u30e9\u30b9\u30bf\u30fc\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u304c1\u53f0\u304b\u8907\u6570\u304b\u306b\u304b\u304b\u308f\u3089\u305a\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u306e\u72b6\u614b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u76e3\u8996\u3067\u304d\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5909\u6570\u306e\u5305\u62ec\u7684\u306a\u30ea\u30b9\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3001SQL Diagnostic Manager\u306f\u76e3\u8996\u3059\u308bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u305d\u308c\u305e\u308c\u306b\u5c02\u7528\u30e6\u30fc\u30b6\u30fc\u3092\u5fc5\u8981\u3068\u3057\u3001\u305d\u308c\u3089\u306e\u30e6\u30fc\u30b6\u30fc\u306fSQL Diagnostic Manager\u304c\u5fc5\u8981\u3068\u3059\u308b\u60c5\u5831\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u9069\u5f53\u306a\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n
SQL Diagnostic Manager\u306e\u307b\u3068\u3093\u3069\u306e\u6a5f\u80fd\u306f\u3001SQL Diagnostic Manager\u304cMySQL\u3068\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308bMySQL\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u3092\u4e00\u5207\u5fc5\u8981\u3068\u3057\u307e\u305b\u3093\u3002\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u6a29\u9650\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6a29\u9650\u3092\u4ed8\u3051\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n
\r\nGRANT USAGE ON *.* \r\nTO 'user'@'host';\r\n<\/pre>\n\u3059\u3079\u3066\u306eSQL Diagnostic Manager\u6a5f\u80fd\u3092\u5b8c\u5168\u306b\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u5fc5\u8981\u3068\u3059\u308b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306b\u78ba\u5b9f\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u6a29\u9650\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u6ce8\u610f<\/h4>\n
SQL Diagnostic Manager\u30e6\u30fc\u30b6\u30fc\u306b\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u8a31\u53ef\u3059\u308b\u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a<db-config>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n
\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ab\u30a6\u30f3\u30bf\u30fc<\/h3>\n
SQL Diagnostic Manager\u30e6\u30fc\u30b6\u30fc\u306f\u3001SQL Diagnostic Manager\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ab\u30a6\u30f3\u30bf\u30fc\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306bmysql.user\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308bSELECT\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
\u307e\u305f\u3001\u30b5\u30fc\u30d0\u30fc\u304cskip_show_databases\u8a2d\u5b9a\u5909\u6570\u3067\u8d77\u52d5\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u660e\u793a\u7684\u306bSHOW DATABASES\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ab\u30a6\u30f3\u30bf\u30fc<\/h3>\n
\u30b9\u30ec\u30fc\u30d6\u304b\u3089\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e1\u30c8\u30ea\u30c3\u30af\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b9\u30ec\u30fc\u30d6\u306eMySQL\u30e6\u30fc\u30b6\u30fc\u304cREPLICATION_CLIENT \u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002SUPER\u6a29\u9650\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n
SQL Diagnostic Manager\u3067MySQL\u30b5\u30fc\u30d0\u30fc\u3092\u767b\u9332\u3059\u308b\u6642\u306b\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u542b\u3081\u308b\u305f\u3081\u306eIs this a Replication Slave?<\/strong> \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u767b\u9332\u6642\u306bYes<\/i>\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306fNo<\/i>\u3067\u3059\u3002No<\/i>\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001SQL Diagnostic Manager\u306f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u7121\u8996\u3057\u307e\u3059\u3002<\/p>\n
\u30b5\u30fc\u30d0\u30fc\u767b\u9332\u30da\u30fc\u30b8\u304b\u3089\u63a5\u7d9a\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001SQL Diagnostic Manager\u306f\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n
\r\nAccess denied. You need the SUPER\/REPLICATION CLIENT \r\nprivilege for retrieving REPLICATION details!\r\n<\/pre>\n\u3053\u306e\u30a8\u30e9\u30fc\u306f\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u304c\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b9\u30ec\u30fc\u30d6\u3067\u306f\u306a\u3044\u5834\u5408\u3001\u307e\u305f\u306f\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u76e3\u8996\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u3001\u7121\u8996\u3057\u3066\u304b\u307e\u3044\u307e\u305b\u3093\u3002<\/p>\n
InnoDB\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306e\u76e3\u8996<\/h3>\n
MySQL\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001InnoDB\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u306e\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u306fSUPER\u307e\u305f\u306fPROCESS\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
\u6ce8\u610f<\/h4>\n
MySQL 5.1.24\u3067\u306f\u3001PROCESS\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\u3002\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001SUPER\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\u6a5f\u80fd<\/h3>\n
\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u306eMySQL\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u306f\u3001PROCESS\u6a29\u9650\u3092\u6709\u52b9\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001SUPER\u6a29\u9650\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001SQL Diagnostic Manager\u3067\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u4e2d\u6b62\uff08\u30ad\u30eb\uff09\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
processlist\u306eEXPLAIN\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u8aac\u660e\u3057\u305f\u3044\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306b\u3088\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066SELECT\u304a\u3088\u3073SHOW VIEW\u6a29\u9650\u3092\u4e0e\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u306f\u3001\u3082\u3063\u3068\u5358\u7d14\u306b\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u306eSELECT\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n
\u6ce8\u610f<\/h4>\n
\u30e6\u30fc\u30b6\u30fc\u304c\u5fc5\u8981\u3068\u3055\u308c\u308b\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u3001SQL Diagnostic Manager\u306f\u5f71\u97ff\u3092\u53d7\u3051\u308b\u30ab\u30a6\u30f3\u30bf\u30fc\u306bN\/A\u3068\u8868\u793a\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u305d\u308c\u3089\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3059\u308b\u8a66\u884c\u3054\u3068\u306b\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u30a8\u30e9\u30fc\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8a18\u9332\u3057\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3001\u30ed\u30b0\u304c\u304b\u306a\u308a\u5927\u5bb9\u91cf\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n
\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30ad\u30fc\u30de\u30d9\u30fc\u30b9\u306e\u30b9\u30cb\u30c3\u30d5\u30a1\u30fc<\/h3>\n
\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30ad\u30fc\u30de\u306e\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u306f\u3001SELECT\u3001DROP\u3001UPDATE\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
SQL Diagnostic Manager\u306f\u3001SELECT\u6a29\u9650\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30ad\u30fc\u30de\u30c6\u30fc\u30d6\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002DROP\u6a29\u9650\u306b\u3088\u3063\u3066\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30ad\u30fc\u30de\u30c6\u30fc\u30d6\u30eb\u3092\u5207\u308a\u6368\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002UPDATE\u6a29\u9650\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30b9\u30ad\u30fc\u30de\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u30c0\u30a4\u30b8\u30a7\u30b9\u30c8\u304a\u3088\u3073\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u5c65\u6b74\u30ed\u30b0\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n
\u30ed\u30b0\u306e\u53d6\u5f97<\/h3>\n
\u30c6\u30fc\u30d6\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30ed\u30b0\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001\uff08\u30d0\u30fc\u30b8\u30e7\u30f35.1\u4ee5\u964d\u306eMySQL\u3067\u30b5\u30dd\u30fc\u30c8\uff09\u3001SQL Diagnostic Manager\u30e6\u30fc\u30b6\u30fc\u306f\u30ed\u30b0\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066SELECT\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30d5\u30e9\u30c3\u30b7\u30e5<\/h3>\n
FLUSH STATUS\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001SQL Diagnostic Manager\u30e6\u30fc\u30b6\u30fc\u306f RELOAD\u6a29\u9650\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u30af\u30e9\u30b9\u30bf\u30fc\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308bMySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u304c1\u53f0\u304b\u8907\u6570\u304b… <\/p>\n