{"id":760,"date":"2023-12-07T23:59:28","date_gmt":"2023-12-07T14:59:28","guid":{"rendered":"https:\/\/web.cloudfree.jp\/journal\/?p=760"},"modified":"2023-12-14T06:45:32","modified_gmt":"2023-12-13T21:45:32","slug":"wordpress%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%82%921click%e3%81%a7%e6%9b%b4%e6%96%b03-5","status":"publish","type":"post","link":"https:\/\/web.cloudfree.jp\/journal\/wordpress%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%82%921click%e3%81%a7%e6%9b%b4%e6%96%b03-5\/","title":{"rendered":"WordPress\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u30921Click\u3067\u66f4\u65b0(3\/5)"},"content":{"rendered":"<h3 class=\"wp-block-post-title\">WordPress\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u30921Click\u3067\u66f4\u65b0(3\/5)<\/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\">2023-12-07 \u8a18\u8f09<br>\u6982\u8981 : mariadb.exe\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6307\u5b9a\u306f\u5c11\u3057\u30af\u30bb\u304c\u3042\u308b\u3002<br>\u95a2\u9023\u8a18\u4e8b\uff1a<a href=\"http:\/\/1\/5\">(1\/5)<\/a>, <a href=\"http:\/\/2\/5\">(2\/5)<\/a>, <a href=\"http:\/\/4\/5\">(4\/5)<\/a>, <a href=\"https:\/\/web.cloudfree.jp\/journal\/wordpress%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%82%921click%e3%81%a7%e6%9b%b4%e6%96%b05-5\/\" data-type=\"post\" data-id=\"765\">(5\/5)<\/a><br>Keyword : WordPress, BackWPup, FTP, VBA, MariaDB, SQL,  <\/p>\n\n\n\n<p><a href=\"https:\/\/web.cloudfree.jp\/journal\/wordpress%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%82%921click%e3%81%a7%e6%9b%b4%e6%96%b02-5\/\" data-type=\"post\" data-id=\"759\">\u524d\u56de<\/a>\u306e\u3064\u3065\u304d<br>c:\\work\\cfsid_mywordpress.sql<br>\u3092local\u306eMaraiDB\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u305b\u307e\u3059\u3002<br><br>\u4e2d\u3092\u307f\u308b\u3068<br>DROP TABLE IF EXISTS <code>wp_commentmeta<\/code>;<br>\u3068CREATE TABLE\u306e\u524d\u306b\u306f DROP TABLE \u304c\u3042\u308a\u307e\u3059\u306e\u3067<br>\u305d\u306e\u307e\u307e\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<br>\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u306f mariadb.exe \u3092\u4f7f\u3044\u307e\u3059\u3002<br><br>\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>mariadb.exe -?<br><br>Ver 15.1 Distrib 10.5.22-MariaDB, for Win64 (AMD64) \u306e\u5834\u5408<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>The following groups are read: mysql mariadb-client client client-server client-mariadb\nThe following options may be given as the first argument:\n--print-defaults          Print the program argument list and exit.\n--no-defaults             Don&#39;t read default options from any option file.\nThe following specify which files\/extra groups are read (specified before remaining options):\n--defaults-file=#         Only read default options from the given file #.\n--defaults-extra-file=#   Read this file after the global files are read.\n--defaults-group-suffix=# Additionally read default groups with # appended as a suffix.\n\n  -?, --help          Display this help and exit.\n  -I, --help          Synonym for -?\n  --abort-source-on-error \n                      Abort &#39;source filename&#39; operations in case of errors\n  --auto-rehash       Enable automatic rehashing. One doesn&#39;t need to use\n                      &#39;rehash&#39; to get table and field completion, but startup\n                      and reconnecting may take a longer time. Disable with\n                      --disable-auto-rehash.\n                      (Defaults to on; use --skip-auto-rehash to disable.)\n  -A, --no-auto-rehash \n                      No automatic rehashing. One has to use &#39;rehash&#39; to get\n                      table and field completion. This gives a quicker start of\n                      mysql and disables rehashing on reconnect.\n  --auto-vertical-output \n                      Automatically switch to vertical output mode if the\n                      result is wider than the terminal width.\n  -B, --batch         Don&#39;t use history file. Disable interactive behavior.\n                      (Enables --silent.)\n  --binary-as-hex     Print binary data as hex\n  --character-sets-dir=name \n                      Directory for character set files.\n  --column-type-info  Display column type information.\n  -c, --comments      Preserve comments. Send comments to the server. The\n                      default is --skip-comments (discard comments), enable\n                      with --comments.\n  -C, --compress      Use compression in server\/client protocol.\n  -#, --debug[=#]     This is a non-debug version. Catch this and exit.\n  --debug-check       Check memory and open file usage at exit.\n  -T, --debug-info    Print some debug info at exit.\n  -D, --database=name Database to use.\n  --default-character-set=name \n                      Set the default character set.\n  --delimiter=name    Delimiter to be used.\n  -e, --execute=name  Execute command and quit. (Disables --force and history\n                      file.)\n  --enable-cleartext-plugin \n                      Obsolete option. Exists only for MySQL compatibility.\n  -E, --vertical      Print the output of a query (rows) vertically.\n  -f, --force         Continue even if we get an SQL error. Sets\n                      abort-source-on-error to 0\n  -G, --named-commands \n                      Enable named commands. Named commands mean this program&#39;s\n                      internal commands; see mysql&gt; help . When enabled, the\n                      named commands can be used from any line of the query,\n                      otherwise only from the first line, before an enter.\n                      Disable with --disable-named-commands. This option is\n                      disabled by default.\n  -i, --ignore-spaces Ignore space after function names.\n  --init-command=name SQL Command to execute when connecting to MariaDB server.\n                      Will automatically be re-executed when reconnecting.\n  --local-infile      Enable\/disable LOAD DATA LOCAL INFILE.\n  -b, --no-beep       Turn off beep on error.\n  -h, --host=name     Connect to host.\n  -H, --html          Produce HTML output.\n  -X, --xml           Produce XML output.\n  --line-numbers      Write line numbers for errors.\n                      (Defaults to on; use --skip-line-numbers to disable.)\n  -L, --skip-line-numbers \n                      Don&#39;t write line number for errors.\n  -n, --unbuffered    Flush buffer after each query.\n  --column-names      Write column names in results.\n                      (Defaults to on; use --skip-column-names to disable.)\n  -N, --skip-column-names \n                      Don&#39;t write column names in results.\n  --sigint-ignore     Ignore SIGINT (CTRL-C).\n  -o, --one-database  Ignore statements except those that occur while the\n                      default database is the one named at the command line.\n  --pager[=name]      Pager to use to display results. If you don&#39;t supply an\n                      option, the default pager is taken from your ENV variable\n                      PAGER. Valid pagers are less, more, cat [&gt; filename],\n                      etc. See interactive help (\\h) also. This option does not\n                      work in batch mode. Disable with --disable-pager. This\n                      option is disabled by default.\n  -p, --password[=name] \n                      Password to use when connecting to server. If password is\n                      not given it&#39;s asked from the tty.\n  -W, --pipe          Use named pipes to connect to server.\n  -P, --port=#        Port number to use for connection or 0 for default to, in\n                      order of preference, my.cnf, $MYSQL_TCP_PORT,\n                      \/etc\/services, built-in default (3306).\n  --progress-reports  Get progress reports for long running commands (like\n                      ALTER TABLE)\n                      (Defaults to on; use --skip-progress-reports to disable.)\n  --prompt=name       Set the command line prompt to this value.\n  --protocol=name     The protocol to use for connection (tcp, socket, pipe).\n  -q, --quick         Don&#39;t cache result, print it row by row. This may slow\n                      down the server if the output is suspended. Doesn&#39;t use\n                      history file.\n  -r, --raw           Write fields without conversion. Used with --batch.\n  --reconnect         Reconnect if the connection is lost. Disable with\n                      --disable-reconnect. This option is enabled by default.\n                      (Defaults to on; use --skip-reconnect to disable.)\n  -s, --silent        Be more silent. Print results with a tab as separator,\n                      each row on new line.\n  -S, --socket=name   The socket file to use for connection.\n  --ssl               Enable SSL for connection (automatically enabled with\n                      other flags).\n  --ssl-ca=name       CA file in PEM format (check OpenSSL docs, implies\n                      --ssl).\n  --ssl-capath=name   CA directory (check OpenSSL docs, implies --ssl).\n  --ssl-cert=name     X509 cert in PEM format (implies --ssl).\n  --ssl-cipher=name   SSL cipher to use (implies --ssl).\n  --ssl-key=name      X509 key in PEM format (implies --ssl).\n  --ssl-crl=name      Certificate revocation list (implies --ssl).\n  --ssl-crlpath=name  Certificate revocation list path (implies --ssl).\n  --tls-version=name  TLS protocol version for secure connection.\n  --ssl-verify-server-cert \n                      Verify server&#39;s &quot;Common Name&quot; in its cert against\n                      hostname used when connecting. This option is disabled by\n                      default.\n  -t, --table         Output in table format.\n  --tee=name          Append everything into outfile. See interactive help (\\h)\n                      also. Does not work in batch mode. Disable with\n                      --disable-tee. This option is disabled by default.\n  -u, --user=name     User for login if not current user.\n  -U, --safe-updates  Only allow UPDATE and DELETE that uses keys.\n  -U, --i-am-a-dummy  Synonym for option --safe-updates, -U.\n  -v, --verbose       Write more. (-v -v -v gives the table output format).\n  -V, --version       Output version information and exit.\n  -w, --wait          Wait and retry if connection is down.\n  --connect-timeout=# Number of seconds before connection timeout.\n  --max-allowed-packet=# \n                      The maximum packet length to send to or receive from\n                      server.\n  --net-buffer-length=# \n                      The buffer size for TCP\/IP and socket communication.\n  --select-limit=#    Automatic limit for SELECT when using --safe-updates.\n  --max-join-size=#   Automatic limit for rows in a join when using\n                      --safe-updates.\n  --secure-auth       Refuse client connecting to server if it uses old\n                      (pre-4.1.1) protocol.\n  --server-arg=name   Send embedded server this as a parameter.\n  --show-warnings     Show warnings after every statement.\n  --plugin-dir=name   Directory for client-side plugins.\n  --default-auth=name Default authentication client-side plugin to use.\n  --binary-mode       Binary mode allows certain character sequences to be\n                      processed as data that would otherwise be treated with a\n                      special meaning by the parser. Specifically, this switch\n                      turns off parsing of all client commands except \\C and\n                      DELIMITER in non-interactive mode (i.e., when binary mode\n                      is combined with either 1) piped input, 2) the --batch\n                      mysql option, or 3) the &#39;source&#39; command). Also, in\n                      binary mode, occurrences of &#39;\\r\\n&#39; and ASCII &#39;\\0&#39; are\n                      preserved within strings, whereas by default, &#39;\\r\\n&#39; is\n                      translated to &#39;\\n&#39; and &#39;\\0&#39; is disallowed in user input.\n  --connect-expired-password \n                      Notify the server that this client is prepared to handle\n                      expired password sandbox mode even if --batch was\n                      specified.\n\nVariables (--variable-name=value)\nand boolean options {FALSE|TRUE}  Value (after reading options)\n--------------------------------- ----------------------------------------\nabort-source-on-error             FALSE\nauto-rehash                       TRUE\nauto-vertical-output              FALSE\nbinary-as-hex                     FALSE\ncharacter-sets-dir                (No default value)\ncolumn-type-info                  FALSE\ncomments                          FALSE\ncompress                          FALSE\ndebug-check                       FALSE\ndebug-info                        FALSE\ndatabase                          (No default value)\ndefault-character-set             auto\ndelimiter                         ;\nvertical                          FALSE\nforce                             FALSE\nnamed-commands                    FALSE\nignore-spaces                     FALSE\ninit-command                      (No default value)\nlocal-infile                      FALSE\nno-beep                           FALSE\nhost                              (No default value)\nhtml                              FALSE\nxml                               FALSE\nline-numbers                      TRUE\nunbuffered                        FALSE\ncolumn-names                      TRUE\nsigint-ignore                     FALSE\nport                              3306\nprogress-reports                  TRUE\nprompt                            \\N [\\d]&gt; \nprotocol                          \nquick                             FALSE\nraw                               FALSE\nreconnect                         TRUE\nsocket                            (No default value)\nssl                               FALSE\nssl-ca                            (No default value)\nssl-capath                        (No default value)\nssl-cert                          (No default value)\nssl-cipher                        (No default value)\nssl-key                           (No default value)\nssl-crl                           (No default value)\nssl-crlpath                       (No default value)\ntls-version                       (No default value)\nssl-verify-server-cert            FALSE\ntable                             FALSE\nuser                              (No default value)\nsafe-updates                      FALSE\ni-am-a-dummy                      FALSE\nconnect-timeout                   0\nmax-allowed-packet                16777216\nnet-buffer-length                 16384\nselect-limit                      1000\nmax-join-size                     1000000\nsecure-auth                       FALSE\nshow-warnings                     FALSE\nplugin-dir                        C:\/pgm\/mariadb\/lib\/plugin\ndefault-auth                      (No default value)\nbinary-mode                       FALSE\nconnect-expired-password          FALSE<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-system-sans-serif-font-family\">\u3053\u308c\u3092\u307f\u308b\u3068<br>C:\\pgm\\mariadb\\bin\\mariadb.exe -h=localhost -u=cfsid_dbuser -p=password -D=cfsid_mywordpress &lt; C:\\work\\cfsid_mywordpress.sql<br>\u3068\u66f8\u3051\u3070\u3088\u3044\u304b\u3068\u601d\u3063\u3066\u3057\u307e\u3046\u304c\u3001\u3053\u308c\u306f\u30a8\u30e9\u30fc\u3002<br><br>=\u304c\u4f7f\u3048\u308b\u306e\u306f<br>&#8211;optionname=value<br>\u306e\u3068\u304d\u3060\u3051\u3067\u3057\u305f\u3002\u4e01\u5be7(?)\u306b\u66f8\u304f\u3068\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-base-color has-contrast-background-color has-text-color has-background has-link-color wp-elements-2a9a04ca10ed4c2c3dfd56ec8972fbde\" style=\"font-style:normal;font-weight:600\"><code>\"C:\\pgm\\mariadb\\bin\\mariadb.exe\" --host=localhost --user=cfsid_dbuser --password=password --database=cfsid_mywordpress &lt; \"C:\\work\\cfsid_mywordpress.sql\"<\/code><\/pre>\n\n\n\n<p>\u4e00\u6587\u5b57optionname \u306e\u624b\u629c\u304d(?)\u3067\u3044\u304f\u306a\u3089\u3001\u4f55\u3082\u631f\u307e\u306a\u3044\u30b1\u30fc\u30b9\u3067\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u5c11\u3057\u30af\u30bb\u306e\u3042\u308b\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>C:\\pgm\\mariadb\\bin\\mariadb.exe -hlocalhost -ucfsid_dbuser -ppassword -Dcfsid_mywordpress &lt; C:\\work\\cfsid_mywordpress.sql<br><br>\u3055\u3066\u3001\u3053\u308c\u3067\u7121\u4e8b\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u305f\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u306a\u304f\u3001\u30a8\u30e9\u30fc\u3002<br><br>ERROR at line 1903: Unknown command &#8216;\\&#8221;.<br><br>\u30c7\u30fc\u30bf\u306b\u3082\u3088\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305f\u9593\u9055\u3044\u306a\u3044\u306f\u305a\u306e.sql\u3067\u6587\u6cd5\u7684\u306a(?)\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002\u306a\u305c\uff1f<br>\u8a66\u3057\u306bphpMyAdmin\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u305b\u308b\u3068\u6210\u529f\u3002<br>\u3069\u3046\u3084\u3089S-JIS\u3067\u8aad\u3093\u3067\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br><br>C:\\pgm\\mariadb\\data\\my.ini<br>\u306e [client] \u30bb\u30af\u30b7\u30e7\u30f3\u306b<br>default-character-set=utf8<br>\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<br>\uff08\u4ee5\u4e0b\u306fmsi\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u307e\u307e\u306e\u5185\u5bb9\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>[mysqld]\ndatadir=C:\/pgm\/mariadb\/data\nport=3306\ninnodb_buffer_pool_size=2025M\ncharacter-set-server=utf8\n[client]\nport=3306\nplugin-dir=C:\/pgm\/mariadb\/lib\/plugin\ndefault-character-set=utf8<\/code><\/pre><\/div>\n\n\n\n<p>\u4eca\u5ea6\u306f\u6210\u529f\u3057\u307e\u3057\u305f\u3002<br>\u3057\u304b\u3057\u3053\u308c\u3092<br>New IWshRuntimeLibrary.WshShell<br>\u306eRun\u30b3\u30de\u30f3\u30c9\u306b\u305d\u306e\u307e\u307e\u6d41\u3057\u3066\u3082\u306a\u305c\u304b\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u3044\u308f\u3086\u308bDOS\u7a93\u304b\u3089\u5b9f\u884c\u3055\u305b\u308c\u3070\u901a\u308b\u306e\u3067\u3059\u304c\u3002<br>\u540c\u3058\u6587\u5b57\u5217\u3092S-JIS\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u3066import.bat\u306a\u308a\u306e\u540d\u524d\u3092\u3064\u3051\u3066\u305d\u308c\u3092Run\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u305f\u3089\u6210\u529f\u3002\u539f\u56e0\u306f\u7a76\u660e\u3067\u304d\u3066\u307e\u305b\u3093\u304c\u3068\u308a\u3042\u3048\u305a\u305d\u308c\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u305f\u306e\u3067\u6df1\u8ffd\u3044\u305b\u305a\u3002<br>\u4eca\u56de\u5206\u306eVBA\u30b3\u30fc\u30c9\u306f\u7701\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>(<a href=\"https:\/\/web.cloudfree.jp\/journal\/wordpress%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%82%921click%e3%81%a7%e6%9b%b4%e6%96%b04-5\/\" data-type=\"post\" data-id=\"764\">\u3064\u3065\u304f<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mariadb.exe\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6307\u5b9a\u306f&#8211;\u306e\u3068\u304d\u3060\u3051=\u3092\u631f\u3081\u308b\u70b9\u306b\u6ce8\u610f\u3002my.ini\u306e[client]\u306bdefault-character-set=utf8\u304c\u3042\u308b\u304b\u3082\u6ce8\u610f\u3002<\/p>\n","protected":false},"author":1,"featured_media":758,"comment_status":"open","ping_status":"closed","sticky":false,"template":"wp-custom-template-x24-index","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[59,14,12,56,24],"_links":{"self":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/760"}],"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=760"}],"version-history":[{"count":0,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media\/758"}],"wp:attachment":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}