{"id":525,"date":"2019-02-27T01:46:51","date_gmt":"2019-02-27T01:46:51","guid":{"rendered":"https:\/\/monyog.jp\/?p=525"},"modified":"2019-03-07T02:22:25","modified_gmt":"2019-03-07T02:22:25","slug":"query-analyzer%ef%bc%88%e3%82%af%e3%82%a8%e3%83%aa%e3%82%a2%e3%83%8a%e3%83%a9%e3%82%a4%e3%82%b6%e3%83%bc%ef%bc%89%e3%81%a8processlist%ef%bc%88%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e3%83%aa%e3%82%b9","status":"publish","type":"post","link":"https:\/\/smart-style.main.jp\/monyogjp\/static\/document\/525\/index.html","title":{"rendered":"Query Analyzer\uff08\u30af\u30a8\u30ea\u30a2\u30ca\u30e9\u30a4\u30b6\u30fc\uff09\u3068Processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09\u306e\u30c7\u30fc\u30bf"},"content":{"rendered":"
\r\nCREATE TABLE IF NOT EXISTS [query_master](\r\n [id] INTEGER PRIMARY KEY AUTOINCREMENT,\r\n [query] TEXT,\r\n UNIQUE([query]))\r\n\r\nCREATE TABLE IF NOT EXISTS [query_snapshot] (\r\n [pkeyid] INTEGER PRIMARY KEY AUTOINCREMENT,\r\n [id] INTEGER,\r\n [threadid] INTEGER,\r\n [user] TEXT,\r\n [querytime] INTEGER,\r\n [uptime] INTEGER,\r\n [host] TEXT DEFAULT)\r\n<\/pre>\n\u3053\u3053\u3067\u3001\u4e0a\u306e\u30d1\u30bf\u30fc\u30f3\u3068\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u304c\u51fa\u73fe\u3057\u307e\u3059\u3002[query_snapshot]\u30c6\u30fc\u30d6\u30eb\u306e[id]\u5217\u306f\u3001\u5b9f\u969b\u306e\u30af\u30a8\u30ea\uff0f\u30c6\u30ad\u30b9\u30c8\u30af\u30a8\u30ea\u3092\u4fdd\u5b58\u3059\u308b[query_master]\u306e\u884c\u3092\u8b58\u5225\u3057\u307e\u3059\u3002\u307e\u305f\u3001[query]\u5217\u3067\u306f\u3001[query_master]\u30c6\u30fc\u30d6\u30eb\u306b\u540c\u3058\u30af\u30a8\u30ea\u306f1\u56de\u3057\u304b\u4fdd\u5b58\u3055\u308c\u306a\u3044\u3088\u3046\u3001INSERT ...ON DUPLICATE KEY\u69cb\u9020\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u3001\u4e00\u610f\u306e\u30ad\u30fc\u3092\u8b58\u5225\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001[query_snapshot]\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001\u30af\u30a8\u30ea\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3054\u3068\u306b1\u884c\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002<\/p>\n
\u4e00\u822c\uff0f\u30b9\u30ed\u30fc\u30af\u30a8\u30ea\u30ed\u30b0\u30a2\u30ca\u30e9\u30a4\u30b6\u30fc\u3067\u306f\u3001\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53d6\u308a\u51fa\u3057\u305f\u30ed\u30b0\u30c1\u30e3\u30f3\u30af\u306f\u69cb\u6587\u89e3\u6790\u3055\u308c\u3001\u30c6\u30fc\u30d6\u30eb\u306fsniffer.data\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u308b\u3088\u3046\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u30ed\u30b0\u89e3\u6790\u306b\u4f7f\u7528\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306fMEMORY\u30c6\u30fc\u30d6\u30eb\u3067\u3042\u308a\u3001\u305d\u308c\u3092\u4f7f\u7528\u3067\u304d\u308b\u306e\u306fSQL Diagnostic Manager\u3060\u3051\u3067\u3001\u305d\u308c\u3082\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051\u3067\u3059\u3002<\/p>\n
<\/p>\n
Processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09<\/h3>\n
\u3055\u3089\u306b\u3001SQL Diagnostic Manager processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09\u6a5f\u80fd\u3067\u306f\u3001SQLite MEMORY\u30c6\u30fc\u30d6\u30eb\uff08\u30b5\u30fc\u30d0\u30fc\u3054\u3068\u306e\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n
CREATE TEMPORARY TABLE IF NOT EXISTS [processlist](\r\n [Id] INTEGER NOT NULL PRIMARY KEY,\r\n [User] TEXT,\r\n [Host] TEXT,\r\n [Db] TEXT,\r\n [Command] TEXT,\r\n [Time] INTEGER,\r\n [State] TEXT,\r\n [Info] TEXT,\r\n [Action] TEXT)\r\n<\/pre>\n\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u308c\u304cSQL Diagnostic Manager\u306b\u304a\u3051\u308bMySQL processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09\u306e\u8868\u793a\u65b9\u6cd5\u3067\u3059\u3002MySQL\u306b\u76f4\u63a5\u63a5\u7d9a\u3057\u305f\u3068\u304d\u3068\u306f\u9055\u3044\u3001SQL Diagnostic Manager [processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09]\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308bSELECT\u30af\u30a8\u30ea\u306b\u3088\u308a\u3001WHERE\u3001ORDER BY\u3001GROUP BY\u306a\u3069\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u51e6\u7406\u3084\u30bd\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u306fMEMORY\u30c6\u30fc\u30d6\u30eb\u306a\u306e\u3067\u3001\u30af\u30a8\u30ea\u306fSQL Diagnostic Manager processlist\uff08\u30d7\u30ed\u30bb\u30b9\u30ea\u30b9\u30c8\uff09\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u5185\u304b\u3089\u3057\u304b\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n
<\/p>\n
SQL Diagnostic Manager\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30ad\u30fc\u30de\u305d\u306e\u3082\u306e\u306b\u95a2\u3059\u308b\u60c5\u5831<\/h3>\n
SQL Diagnostic Manager\u3067\u4f5c\u6210\u3057\u305f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306bschema_version\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u6bce\u56de\u3001SQL Diagnostic Manager\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001SQL Diagnostic Manager\u306f\u3053\u3053\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u6700\u65b0\u306e\u3082\u306e\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u3001\u73fe\u884c\u30d7\u30ed\u30b0\u30e9\u30e0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6700\u65b0\u3067\u306a\u3044\u5834\u5408\u3001SQL Diagnostic Manager\u306f\u3001\u8d77\u52d5\u6642\u306b\u3001\u5fc5\u8981\u306a\u30b9\u30ad\u30fc\u30de\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n
CREATE TABLE IF NOT EXISTS [schema_version] (\r\n [schema_desc] TEXT,\r\n [schema_major_version] TEXT,\r\n [schema_minor_version] TEXT,\r\n PRIMARY KEY ([schema_major_version], [schema_minor_version]))\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"sniffer.data \u3053\u3053\u3067\u3001\u4e0a\u306e\u30d1\u30bf\u30fc\u30f3\u3068\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u304c\u51fa\u73fe\u3057… <\/p>\n