{"id":890,"date":"2024-01-25T23:59:05","date_gmt":"2024-01-25T14:59:05","guid":{"rendered":"https:\/\/web.cloudfree.jp\/journal\/?p=890"},"modified":"2024-02-02T09:00:21","modified_gmt":"2024-02-02T00:00:21","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%81%ab%e5%85%a5","status":"publish","type":"post","link":"https:\/\/web.cloudfree.jp\/journal\/%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%81%ab%e5%85%a5\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u5165\u308c\u308b"},"content":{"rendered":"<h3 class=\"wp-block-post-title\">\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u5165\u308c\u308b<\/h3>\n\n\n<p class=\"has-tertiary-color has-text-color has-background has-small-font-size\" style=\"background-color:#8d8dd8;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">2024-01-25 \u8a18\u8f09<br>\u6982\u8981 : \u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u5165\u308c\u308b<br>Keyword : Selenium, phpMyAdmin, \u30a4\u30f3\u30dd\u30fc\u30c8, \u30a8\u30af\u30b9\u30dd\u30fc\u30c8, SQL, VBA, Chrome<\/p>\n\n\n\n<p>Laravel\u306f\u30ed\u30fc\u30ab\u30eb\u304c\u6b63\u306a\u306e\u3067\u3001\u30b5\u30fc\u30d0\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u3082\u3063\u3066\u304f\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30c7\u30fc\u30bf\u306b\u95a2\u3057\u3066\u306f\u30b5\u30fc\u30d0\u304b\u3089\u3082\u3089\u3044\u305f\u3044\u3068\u304d\u304c\u3042\u308a\u307e\u3059\u3002<br>SSH\u304c\u4f7f\u3048\u305f\u3089mysqldump\u3067\u307b\u3044\u307b\u3044\u306a\u306e\u3067\u3059\u304c\u3001\u3042\u3044\u306b\u304fcloudfree\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u5916\u90e8\u304b\u3089\u3082\u3064\u306a\u3052\u306a\u3044\u306e\u3067\u3001\u666e\u901a\u306b\u3068\u308a\u3060\u3059\u306a\u3089phpMyAdmin\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3067\u3059\u3002<br>\u305d\u308c\u3092\u81ea\u52d5\u5316\u3067\u304d\u308b\u304b\u3001\u3068\u3044\u3046\u30c8\u30e9\u30a4\u3067\u3001\u3044\u3061\u304a\u3046\u6210\u529f\u3057\u307e\u3057\u305f\u3002<br>\u3057\u304b\u3057Selenium\u4f7f\u7528\u306a\u306e\u3067\u30ed\u30fc\u30ab\u30eb\u9650\u5b9a\u3067UI\u3092\u4e0e\u3048\u3066\u306e\u81ea\u52d5\u51e6\u7406\u3067\u3059\u3002<br><br>\u30dd\u30a4\u30f3\u30c8\u306f<br>\u25cfcloudfree\u306ephpMyAdmin\u306fBASIC\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b<br>\u25cfphpMyAdmin\u306f\u3086\u3063\u305f\u308a\u64cd\u4f5c\u3057\u306a\u3044\u3068\u601d\u3044\u901a\u308a\u306e\u51e6\u7406\u306b\u306a\u3089\u306a\u3044<br>\u25cf\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u30c0\u30a4\u30a2\u30ed\u30b0\u3078\u306e\u5024\u8a2d\u5b9a\u306f\u30af\u30bb\u304c\u3042\u308b<br>\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002<br><br>\u304a\u304a\u307e\u304b\u306a\u30d5\u30ed\u30fc\u306f<br>\u25cfStep1.cloudfree\u30b5\u30fc\u30d0\u306ephpMyAdmin\u306bLogin\u3057\u3066\u30c6\u30fc\u30d6\u30eblv_bbs\u306e\u30c7\u30fc\u30bf\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br>\u25cfStep2.local\u306ephpMyAdmin\u306bLogin\u3057\u3066\u30c6\u30fc\u30d6\u30eblv_bbs\u306e\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<br>\u3067\u3059\u3002<br><br>Selenium\u3067\u64cd\u4f5c\u3059\u308b\u5834\u5408\u3001phpMyAdmin\u3088\u308a\u3082Adminer\u306e\u307b\u3046\u304c\u7c21\u5358\u305d\u3046\u3060\u3068\u3001\u3084\u3063\u3066\u307f\u305f\u3042\u3068\u3067\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u3068\u308a\u3042\u3048\u305aphpMyAdmin\u3067\u9032\u3081\u307e\u3057\u305f\u3002\u305d\u308c\u3068Chrome\u306e\u81ea\u52d5\u66f4\u65b0\u3092\u3068\u3081\u305f\u3064\u3082\u308a(<a href=\"https:\/\/web.cloudfree.jp\/journal\/chrome%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%ae%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0%e3%82%92%e3%81%a8%e3%82%81%e3%82%8b\/\" data-type=\"post\" data-id=\"769\">\u6295\u7a3f\u306f\u3053\u3061\u3089<\/a>)\u304c\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u3066\u3044\u3066\u30c9\u30e9\u30a4\u30d0\u30fc\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u308f\u305a\u304b\u306b\u5408\u308f\u305a\u82e6\u52b4\u3055\u305b\u3089\u308c\u307e\u3057\u305f\u3002<br><br><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4f50a3\" class=\"has-inline-color\">\u3084\u3084\u8131\u7dda\u3057\u307e\u3059\u304c<br>\u300c<em>\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u3001Microsoft\u00ae Active Directory\u00ae\u30c9\u30e1\u30a4\u30f3\u306b\u53c2\u52a0\u3057\u3066\u3044\u308bWindows\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u306e\u307f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/em>\u300d<br>\u3068\u6ce8\u610f\u66f8\u304d\u304c\u3042\u3063\u3066\u30b3\u30ec\u306e\u305b\u3044\u304b\u306a\u3068\u3002<br>\u623b\u3063\u3066\u3002<\/mark><br><br>\u300c\u308f\u305a\u304b\u300d\u3068\u3044\u3046\u70b9\u304c\u30df\u30b9\u3067\u3001\u307e\u3063\u305f\u304f\u52d5\u304b\u306a\u3044\u306e\u3067\u306f\u306a\u304fClick\u3060\u3051\u306f\u5931\u6557\u3059\u308b\u3001\u3068\u3044\u3046\u6319\u52d5\u3067\u3057\u305f\u3002Click\u306e\u304b\u308f\u308a\u306bTab\u3092\u56de\u3057\u3066\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u3042\u3066\u3066Space\u30ad\u30fc\u3092\u53e9\u304f\u3001\u3067\u4ee3\u7528\u3057\u305f\u3089\u4f7f\u3048\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u305d\u308c\u3067\u5bfe\u51e6\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u3093\u306a\u3053\u3068\u672c\u6765\u306f\u3084\u3063\u3066\u3089\u308c\u307e\u305b\u3093\u3002<br>Selenium\u64cd\u4f5c\u3092Edge\u304cFirefox\u306b\u4e57\u308a\u63db\u3048\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u5b89\u5b9a\u30bb\u30c3\u30c8\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>https:\/\/cfsid_user:password@phpmyadmin-sv11.cloudfree.ne.jp\/index.php\n?route=\/table\/export&db=cfsid_dbname&table=table_name&single_table=true<\/code><\/pre><\/div>\n\n\n\n<p>URL\u304c\u91cd\u8981\u3067\u3059\u3002BASIC\u8a8d\u8a3c\u306f\u30b9\u30ad\u30fc\u30de\u3068\u30c9\u30e1\u30a4\u30f3\u306e\u9593\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u3067\u64cd\u4f5c\u3059\u308b\u3068\u30ed\u30b0\u30a4\u30f3\u78ba\u8a8d\u307f\u305f\u3044\u306a\u30d7\u30c1\u306a\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001Selenium\u3060\u3068\u3059\u3093\u306a\u308a\u30eb\u30fc\u30c8\u753b\u9762\u306b\u9077\u79fb\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br>\u305d\u306e\u30eb\u30fc\u30c8\u753b\u9762\u3067\u3059\u304c\u3001phpMyAdmin\u306f\u8a73\u7d30\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<br>db=&#8230;&amp;table=&#8230;\u3092\u6307\u5b9a\u3057\u3066\u5f53\u8a72\u30c6\u30fc\u30d6\u30eb\u306e\u64cd\u4f5c\u753b\u9762\u3092\u51fa\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br>\u306a\u306b\u3082\u8a2d\u5b9a\u305b\u305a\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305fSQL\u3092\u53d7\u3051\u5165\u308c\u308b\u3088\u3046\u306b\u30ed\u30fc\u30ab\u30eb\u5074\u3092\u6574\u3048\u308c\u3070\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001TRUNCATE TABLE \u3057\u3066 \u30c7\u30fc\u30bf\u306e\u307fINSERT\u3059\u308bSQL\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002(\u306a\u306e\u3067\u82e6\u52b4\u3057\u305f)<br>\u64cd\u4f5c1: \/\/input[@id=&#8221;radio_custom_export&#8221;] Click<br>\u64cd\u4f5c2: \u25ce\u69cb\u9020\u3068\u30c7\u30fc\u30bf\u2192\u25ce\u30c7\u30fc\u30bf (\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3\u7b87\u6240\u306e\u305f\u3081\u304bClick\u30a8\u30e9\u30fc)<br>\u64cd\u4f5c3: \u633f\u5165\u524d\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u7a7a\u306b\u3059\u308b \u3092ON<br>\u64cd\u4f5c4: \/\/form[@name=&#8221;dump&#8221;] \u306e Submit \u306f\u52b9\u304d\u307e\u3057\u305f\u3002<br><br>\u300e\u30d5\u30a1\u30a4\u30eb\u306f\u3069\u3053\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u306e\uff1f\u300f\u3068\u63a2\u3057\u307e\u3057\u305f\u3002<br>Environ(&#8220;USERPROFILE&#8221;) &amp; &#8220;\\Downloads\\ \u30d5\u30a9\u30eb\u30c0\u306b table_name.sql \u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br>\u4ee5\u4e0a\u3067\u30b5\u30fc\u30d0database\u304b\u3089TRUNCATE\u3068INSERT\u306esql\u3092\u53d6\u5f97\u3002<br>\u6b21\u306b\u30ed\u30fc\u30ab\u30eb\u3002<br><br>\u30ed\u30fc\u30ab\u30eb\u306ephpMyAdmin\u306fConfig\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001<br>?route=\/database\/import&amp;db=cfsid_dbname<br>\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u307f\u3092\u3064\u3051\u3066\u958b\u304d\u307e\u3059\u3002<br><br>\u30a4\u30f3\u30dd\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u53c2\u7167\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u958b\u3044\u3066\u3057\u307e\u3046\u3068\u64cd\u4f5c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br>\/\/input[@id=&#8221;input_import_file&#8221;]\u306eElement\u306b\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092Sendkeys\u3059\u308c\u3070\u8a2d\u5b9a\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br>\u64cd\u4f5c1: \/\/input[@id=&#8221;input_import_file&#8221;] \u2192 &lt;\u30d5\u30a9\u30eb\u30c0&gt;\\table_name.sql<br>\u64cd\u4f5c2: \/\/form[@name=&#8221;import&#8221;] Submit<br><br>\u4ee5\u4e0a\u3067\u3059\u3002\u5404\u64cd\u4f5c\u306e\u3042\u3044\u3060\u306f1\u79d2\u7a0b\u5ea6\u3042\u3051\u308b\u3068\u7121\u96e3\u3067\u3059\u3002\u3042\u3051\u306a\u3044\u3068\u5931\u6557\u3059\u308b\u500b\u6240\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selenium\u3067phpMyAdmin\u3092\u81ea\u52d5\u64cd\u4f5c\u3057\u3066\u3092\u30b5\u30fc\u30d0\u30fc\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff06\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\uff06\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u305b\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":907,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"wp-custom-template-x24-index","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[70,58,41,96,162,163],"_links":{"self":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/890"}],"collection":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":0,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media\/907"}],"wp:attachment":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}