{"id":23827,"date":"2023-09-13T09:29:38","date_gmt":"2023-09-13T00:29:38","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=23827"},"modified":"2023-09-20T18:36:28","modified_gmt":"2023-09-20T09:36:28","slug":"removing-redundant-data","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/server-guide\/server-administration\/troubleshooting\/removing-redundant-data\/","title":{"rendered":"TestRail \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u306e\u91cd\u8907\u30c7\u30fc\u30bf\u306e\u524a\u9664"},"content":{"rendered":"<p><span style=\"color: #333333; background-color: #ffffff;\">\u9577\u671f\u9593\u306b\u308f\u305f\u3063\u3066 TestRail Server \u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u91cd\u8907\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u304a\u3088\u3073\/\u307e\u305f\u306f\u30c6\u30b9\u30c8\u304c\u84c4\u7a4d\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30b9\u30c8\u304a\u3088\u3073\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u91cd\u8907\u306f\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e TestRail \u306e\u975e\u52b9\u7387\u7684\u306a\u30b3\u30fc\u30c9\u304c\u539f\u56e0\u3067\u3059\u3002\u3053\u308c\u306f TestRail 5.5 \u3067\u6700\u9069\u5316\u3055\u308c\u307e\u3057\u305f\u3002\u00a0<\/span><\/p>\n<p><span style=\"color: #2f3941;\">\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u4f5c\u6210\u6642\u304a\u3088\u3073\u30af\u30ed\u30fc\u30ba\u6642\u306b\u9078\u629e\u3055\u308c\u306a\u304b\u3063\u305f\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u91cd\u8907\u3059\u308b\u884c\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u6642\u9593\u304c\u7d4c\u3064\u306b\u3064\u308c\u3066\u91cd\u8907\u30c7\u30fc\u30bf\u304c\u84c4\u7a4d\u3057\u3001\u6700\u7d42\u7684\u306b\u306f\u3001\u30b1\u30fc\u30b9\u304a\u3088\u3073\u30c6\u30b9\u30c8 \u30c6\u30fc\u30d6\u30eb\u306e\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u4f4e\u4e0b\u304c\u751f\u3058\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u52d5\u4f5c\u306e\u9045\u5ef6\u3084\u30ed\u30c3\u30af\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #2f3941;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5b58\u7d9a\u671f\u9593\u3084\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306b\u3088\u3063\u3066\u306f\u300190 % \u4ee5\u4e0a\u306e\u884c\u304c\u91cd\u8907\u3059\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #2f3941;\">\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u3001TestRail \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u91cd\u8907\u884c\u3092\u7279\u5b9a\u3057\u3001\u524a\u9664\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u591a\u304f\u306e\u8981\u671b\u3092\u53d7\u3051\u3066\u3001TestRail \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3059\u308b\u305f\u3081\u306b\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5229\u7528\u3057\u305f\u3044\u3068\u3044\u3046 Server \u7248\u306e\u9867\u5ba2\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"color: #333333; background-color: #ffffff;\">MySQL Innodb \u306f\u884c\u306e\u4e00\u62ec\u524a\u9664\u306b\u5411\u3044\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3088\u308a\u9ad8\u901f\u306a\u300c\u30b3\u30d4\u30fc\u3001\u524a\u9664\u3001\u540d\u524d\u5909\u66f4\u300d\u3068\u3044\u3046\u3084\u308a\u65b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059 (\u9867\u5ba2\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u306f\u3001\u51e6\u7406\u304c\u4f55\u65e5\u3082\u77ed\u304f\u306a\u308b\u4f8b\u3082\u3042\u308a\u307e\u3057\u305f)\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u6709\u52b9\u306a\u884c\u3092\u633f\u5165\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u91cd\u8907\u884c\u306e\u30c6\u30fc\u30d6\u30eb\u3082\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u52b9\u7387\u7684\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u9069\u5207\u306a\u30c6\u30fc\u30d6\u30eb\u3068\u4e0d\u9069\u5207\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u5206\u5272\u3057\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u53e4\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3057\u3066\u9069\u5207\u306a\u30c7\u30fc\u30bf\u3092\u6301\u3064\u30c6\u30fc\u30d6\u30eb\u304c\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u306a\u308b\u3088\u3046\u540d\u524d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u00a0<\/span><\/p>\n<p><span style=\"color: #333333; background-color: #ffffff;\">\u7d50\u679c\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u300c\u5ff5\u306e\u305f\u3081\u300d\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6b8b\u3055\u308c\u307e\u3059\u3002\u5341\u5206\u306a\u671f\u9593\u304c\u7d4c\u904e\u3057\u3066\u3001\u554f\u984c\u304c\u306a\u3044\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u51e6\u7406\u306f\u3001\u53e4\u3044\u30af\u30ed\u30fc\u30ba\u3055\u308c\u305f\u30c6\u30b9\u30c8 \u30e9\u30f3\u306e\u524a\u9664\u3082\u542b\u3081\u3066\u3001\u5927\u5e45\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #333333; background-color: #ffffff;\">\u30b9\u30af\u30ea\u30d7\u30c8\u306f<a href=\"\/wp-content\/uploads\/mr_newxxx.zip\">\u3053\u3061\u3089<\/a>\u304b\u3089\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002ZIP \u306b\u306f\u4ee5\u4e0b\u306e2\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u00a0<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>mr_newtest.php<\/li>\n<li>mr_newcase.php\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1Nl3uysvXeNyRqTMA1pZ2rXFC5Y2ziHaS\/view?usp=share_link\"><span class=\"wysiwyg-underline\"><\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"color: #333333; background-color: #ffffff;\">\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<span class=\"wysiwyg-color-yellow\" style=\"color: #333333; background-color: #ffffff;\">\u30c6\u30fc\u30d6\u30eb\u304c\u30ed\u30c3\u30af\u3055\u308c\u308b\u305f\u3081\u3001\u696d\u52d9\u6642\u9593\u5916\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<strong>\u306a\u304a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5fc5\u305a\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u00a0<\/strong><\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">php [mr_newtest.php, mr_newcase.php] -h {host} -u {user} -p{password or leave blank and it prompts you} -d {database}<\/pre>\n<p><span style=\"color: #333333; background-color: #ffffff;\">\u30b5\u30f3\u30d7\u30eb\u51fa\u529b:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">php mr_newtest.php -h &lt;hostname&gt; -u &lt;user&gt; -p -d &lt;db&gt;\n03\/04\/2021 02:04:32 am: dropping new_tests table if it exists\n03\/04\/2021 02:04:32 am: dropping deadwood_tests table if it exists\n03\/04\/2021 02:04:32 am: dropping old_tests table if it exists\n03\/04\/2021 02:04:32 am: creating new_tests table\n03\/04\/2021 02:04:32 am: creating deadwood_tests table\n03\/04\/2021 02:04:32 am: Locking all tables\n03\/04\/2021 02:04:32 am: inserting is_selected = 1 tests into new_tests table\n03\/04\/2021 02:04:32 am: insert into new_tests select * from tests where is_selected = 1\n03\/04\/2021 02:48:56 am: inserting is_selected = 0 tests into deadwood_tests table\n03\/04\/2021 02:48:56 am: insert into deadwood_tests select * from tests where is_selected = 0\n03\/04\/2021 07:57:57 am: counting rows in new_tests table\n03\/04\/2021 07:58:13 am: Number of rows in new_tests table: 17849816\n03\/04\/2021 07:58:13 am: counting rows in deadwood_tests table\n03\/04\/2021 08:01:42 am: Number of rows in deadwood_tests table: 796606952\n03\/04\/2021 08:01:42 am: unlocking all tables\n03\/04\/2021 08:01:42 am: Renaming tables\n03\/04\/2021 08:01:42 am: dropping old_tests table\n03\/04\/2021 08:01:49 am: Finished.<\/pre>\n<p><span style=\"color: #2f3941; background-color: #ffffff;\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d5\u30c3\u30c8\u30d7\u30ea\u30f3\u30c8\u306e\u5168\u4f53\u7684\u306a\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001\u91cd\u8907\u30c7\u30fc\u30bf\u304c\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u4e0a\u3067\u8aac\u660e\u3057\u305f\u3068\u304a\u308a\u3001TestRail \u304c\u9069\u5207\u306a\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u3001\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5168\u4f53\u7684\u306a\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9577\u671f\u9593\u306b\u308f\u305f\u3063\u3066 TestRail Server \u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u91cd\u8907\u3059\u308b\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u304a\u3088\u3073\/\u307e\u305f\u306f\u30c6\u30b9\u30c8\u304c\u84c4\u7a4d\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30b9\u30c8\u304a\u3088\u3073\u30c6\u30b9\u30c8 \u30b1\u30fc\u30b9\u306e\u91cd\u8907\u306f\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e TestRa [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":14799,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-23827","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/23827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=23827"}],"version-history":[{"count":10,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/23827\/revisions"}],"predecessor-version":[{"id":25412,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/23827\/revisions\/25412"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/14799"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=23827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}