{"id":6340,"date":"2013-06-02T20:19:09","date_gmt":"2013-06-02T11:19:09","guid":{"rendered":"http:\/\/nanoappli.com\/blog\/?p=6340"},"modified":"2013-06-02T20:19:09","modified_gmt":"2013-06-02T11:19:09","slug":"mysqldump%e3%81%ae%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e4%b8%80%e8%a6%a7","status":"publish","type":"post","link":"http:\/\/nanoappli.com\/blog\/archives\/6340","title":{"rendered":"mysqldump\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u4e00\u89a7"},"content":{"rendered":"<p>\nmysqldump &#8211;help\u306e\u7d50\u679c\u3067\u3059<br \/>\nxampp\u306b\u5165\u3063\u3066\u3044\u305fMySQL5.5\u74b0\u5883\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n<pre lang=\"x\">\nmysqldump  Ver 10.13 Distrib 5.5.27, for Win32 (x86)\nCopyright (c) 2000, 2011, Oracle and\/or its affiliates. All rights reserved.\n\nOracle is a registered trademark of Oracle Corporation and\/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nDumping structure and contents of MySQL databases and tables.\nUsage: mysqldump [OPTIONS] database [tables]\nOR     mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]\nOR     mysqldump [OPTIONS] --all-databases [OPTIONS]\n\nDefault options are read from the following files in the given order:\nC:\\Windows\\my.ini C:\\Windows\\my.cnf C:\\my.ini C:\\my.cnf C:\\xampp\\mysql\\my.ini \nC:\\xampp\\mysql\\my.cnf C:\\xampp\\mysql\\bin\\my.ini C:\\xampp\\mysql\\bin\\my.cnf \n\nThe following groups are read: mysqldump client\nThe following options may be given as the first argument:\n--print-defaults        Print the program argument list and exit.\n--no-defaults           Don't read default options from any option file.\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  -A, --all-databases Dump all the databases. This will be same as --databases\n                      with all databases selected.\n  -Y, --all-tablespaces \n                      Dump all the tablespaces.\n  -y, --no-tablespaces \n                      Do not dump any tablespace information.\n  --add-drop-database Add a DROP DATABASE before each create.\n  --add-drop-table    Add a DROP TABLE before each create.\n                      (Defaults to on; use --skip-add-drop-table to disable.)\n  --add-locks         Add locks around INSERT statements.\n                      (Defaults to on; use --skip-add-locks to disable.)\n  --allow-keywords    Allow creation of column names that are keywords.\n  --apply-slave-statements \n                      Adds 'STOP SLAVE' prior to 'CHANGE MASTER' and 'START\n                      SLAVE' to bottom of dump.\n  --character-sets-dir=name \n                      Directory for character set files.\n  -i, --comments      Write additional information.\n                      (Defaults to on; use --skip-comments to disable.)\n  --compatible=name   Change the dump to be compatible with a given mode. By\n                      default tables are dumped in a format optimized for\n                      MySQL. Legal modes are: ansi, mysql323, mysql40,\n                      postgresql, oracle, mssql, db2, maxdb, no_key_options,\n                      no_table_options, no_field_options. One can use several\n                      modes separated by commas. Note: Requires MySQL server\n                      version 4.1.0 or higher. This option is ignored with\n                      earlier server versions.\n  --compact           Give less verbose output (useful for debugging). Disables\n                      structure comments and header\/footer constructs.  Enables\n                      options --skip-add-drop-table --skip-add-locks\n                      --skip-comments --skip-disable-keys --skip-set-charset.\n  -c, --complete-insert \n                      Use complete insert statements.\n  -C, --compress      Use compression in server\/client protocol.\n  -a, --create-options \n                      Include all MySQL specific create options.\n                      (Defaults to on; use --skip-create-options to disable.)\n  -B, --databases     Dump several databases. Note the difference in usage; in\n                      this case no tables are given. All name arguments are\n                      regarded as database names. 'USE db_name;' will be\n                      included in the output.\n  -#, --debug[=#]     This is a non-debug version. Catch this and exit.\n  --debug-check       Check memory and open file usage at exit.\n  --debug-info        Print some debug info at exit.\n  --default-character-set=name \n                      Set the default character set.\n  --delayed-insert    Insert rows with INSERT DELAYED.\n  --delete-master-logs \n                      Delete logs on master after backup. This automatically\n                      enables --master-data.\n  -K, --disable-keys  '\/*!40000 ALTER TABLE tb_name DISABLE KEYS *\/; and\n                      '\/*!40000 ALTER TABLE tb_name ENABLE KEYS *\/; will be put\n                      in the output.\n                      (Defaults to on; use --skip-disable-keys to disable.)\n  --dump-slave[=#]    This causes the binary log position and filename of the\n                      master to be appended to the dumped data output. Setting\n                      the value to 1, will printit as a CHANGE MASTER command\n                      in the dumped data output; if equal to 2, that command\n                      will be prefixed with a comment symbol. This option will\n                      turn --lock-all-tables on, unless --single-transaction is\n                      specified too (in which case a global read lock is only\n                      taken a short time at the beginning of the dump - don't\n                      forget to read about --single-transaction below). In all\n                      cases any action on logs will happen at the exact moment\n                      of the dump.Option automatically turns --lock-tables off.\n  -E, --events        Dump events.\n  -e, --extended-insert \n                      Use multiple-row INSERT syntax that include several\n                      VALUES lists.\n                      (Defaults to on; use --skip-extended-insert to disable.)\n  --fields-terminated-by=name \n                      Fields in the output file are terminated by the given\n                      string.\n  --fields-enclosed-by=name \n                      Fields in the output file are enclosed by the given\n                      character.\n  --fields-optionally-enclosed-by=name \n                      Fields in the output file are optionally enclosed by the\n                      given character.\n  --fields-escaped-by=name \n                      Fields in the output file are escaped by the given\n                      character.\n  -F, --flush-logs    Flush logs file in server before starting dump. Note that\n                      if you dump many databases at once (using the option\n                      --databases= or --all-databases), the logs will be\n                      flushed for each database dumped. The exception is when\n                      using --lock-all-tables or --master-data: in this case\n                      the logs will be flushed only once, corresponding to the\n                      moment all tables are locked. So if you want your dump\n                      and the log flush to happen at the same exact moment you\n                      should use --lock-all-tables or --master-data with\n                      --flush-logs.\n  --flush-privileges  Emit a FLUSH PRIVILEGES statement after dumping the mysql\n                      database.  This option should be used any time the dump\n                      contains the mysql database and any other database that\n                      depends on the data in the mysql database for proper\n                      restore. \n  -f, --force         Continue even if we get an SQL error.\n  -?, --help          Display this help message and exit.\n  --hex-blob          Dump binary strings (BINARY, VARBINARY, BLOB) in\n                      hexadecimal format.\n  -h, --host=name     Connect to host.\n  --ignore-table=name Do not dump the specified table. To specify more than one\n                      table to ignore, use the directive multiple times, once\n                      for each table.  Each table must be specified with both\n                      database and table names, e.g.,\n                      --ignore-table=database.table.\n  --include-master-host-port \n                      Adds 'MASTER_HOST=<host>, MASTER_PORT=<port>' to 'CHANGE\n                      MASTER TO..' in dump produced with --dump-slave.\n  --insert-ignore     Insert rows with INSERT IGNORE.\n  --lines-terminated-by=name \n                      Lines in the output file are terminated by the given\n                      string.\n  -x, --lock-all-tables \n                      Locks all tables across all databases. This is achieved\n                      by taking a global read lock for the duration of the\n                      whole dump. Automatically turns --single-transaction and\n                      --lock-tables off.\n  -l, --lock-tables   Lock all tables for read.\n                      (Defaults to on; use --skip-lock-tables to disable.)\n  --log-error=name    Append warnings and errors to given file.\n  --master-data[=#]   This causes the binary log position and filename to be\n                      appended to the output. If equal to 1, will print it as a\n                      CHANGE MASTER command; if equal to 2, that command will\n                      be prefixed with a comment symbol. This option will turn\n                      --lock-all-tables on, unless --single-transaction is\n                      specified too (in which case a global read lock is only\n                      taken a short time at the beginning of the dump; don't\n                      forget to read about --single-transaction below). In all\n                      cases, any action on logs will happen at the exact moment\n                      of the dump. Option automatically turns --lock-tables\n                      off.\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  --no-autocommit     Wrap tables with autocommit\/commit statements.\n  -n, --no-create-db  Suppress the CREATE DATABASE ... IF EXISTS statement that\n                      normally is output for each dumped database if\n                      --all-databases or --databases is given.\n  -t, --no-create-info \n                      Don't write table creation info.\n  -d, --no-data       No row information.\n  -N, --no-set-names  Same as --skip-set-charset.\n  --opt               Same as --add-drop-table, --add-locks, --create-options,\n                      --quick, --extended-insert, --lock-tables, --set-charset,\n                      and --disable-keys. Enabled by default, disable with\n                      --skip-opt.\n  --order-by-primary  Sorts each table's rows by primary key, or first unique\n                      key, if such a key exists.  Useful when dumping a MyISAM\n                      table to be loaded into an InnoDB table, but will make\n                      the dump itself take considerably longer.\n  -p, --password[=name] \n                      Password to use when connecting to server. If password is\n                      not given it's solicited on the tty.\n  -W, --pipe          Use named pipes to connect to server.\n  -P, --port=#        Port number to use for connection.\n  --protocol=name     The protocol to use for connection (tcp, socket, pipe,\n                      memory).\n  -q, --quick         Don't buffer query, dump directly to stdout.\n                      (Defaults to on; use --skip-quick to disable.)\n  -Q, --quote-names   Quote table and column names with backticks (`).\n                      (Defaults to on; use --skip-quote-names to disable.)\n  --replace           Use REPLACE INTO instead of INSERT INTO.\n  -r, --result-file=name \n                      Direct output to a given file. This option should be used\n                      in systems (e.g., DOS, Windows) that use carriage-return\n                      linefeed pairs (\\r\\n) to separate text lines. This option\n                      ensures that only a single newline is used.\n  -R, --routines      Dump stored routines (functions and procedures).\n  --set-charset       Add 'SET NAMES default_character_set' to the output.\n                      (Defaults to on; use --skip-set-charset to disable.)\n  --shared-memory-base-name=name \n                      Base name of shared memory.\n  --single-transaction \n                      Creates a consistent snapshot by dumping all tables in a\n                      single transaction. Works ONLY for tables stored in\n                      storage engines which support multiversioning (currently\n                      only InnoDB does); the dump is NOT guaranteed to be\n                      consistent for other storage engines. While a\n                      --single-transaction dump is in process, to ensure a\n                      valid dump file (correct table contents and binary log\n                      position), no other connection should use the following\n                      statements: ALTER TABLE, DROP TABLE, RENAME TABLE,\n                      TRUNCATE TABLE, as consistent snapshot is not isolated\n                      from them. Option automatically turns off --lock-tables.\n  --dump-date         Put a dump date to the end of the output.\n                      (Defaults to on; use --skip-dump-date to disable.)\n  --skip-opt          Disable --opt. Disables --add-drop-table, --add-locks,\n                      --create-options, --quick, --extended-insert,\n                      --lock-tables, --set-charset, and --disable-keys.\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-verify-server-cert \n                      Verify server's \"Common Name\" in its cert against\n                      hostname used when connecting. This option is disabled by\n                      default.\n  -T, --tab=name      Create tab-separated textfile for each table to given\n                      path. (Create .sql and .txt files.) NOTE: This only works\n                      if mysqldump is run on the same machine as the mysqld\n                      server.\n  --tables            Overrides option --databases (-B).\n  --triggers          Dump triggers for each dumped table.\n                      (Defaults to on; use --skip-triggers to disable.)\n  --tz-utc            SET TIME_ZONE='+00:00' at top of dump to allow dumping of\n                      TIMESTAMP data when a server has data in different time\n                      zones or data is being moved between servers with\n                      different time zones.\n                      (Defaults to on; use --skip-tz-utc to disable.)\n  -u, --user=name     User for login if not current user.\n  -v, --verbose       Print info about the various stages.\n  -V, --version       Output version information and exit.\n  -w, --where=name    Dump only selected records. Quotes are mandatory.\n  -X, --xml           Dump a database as well formed XML.\n  --plugin-dir=name   Directory for client-side plugins.\n  --default-auth=name Default authentication client-side plugin to use.\n<\/pre>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysqldump &#8211;help\u306e\u7d50\u679c\u3067\u3059 xampp\u306b\u5165\u3063\u3066\u3044\u305fMySQL5.5\u74b0\u5883\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002 mysqldump Ver 10.13 Distrib 5.5.27, for Win32 (x86) Copyright (c) 2000, 2011, Oracle and\/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and\/or its affiliates. Other names may be trademarks of th\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6290,"url":"http:\/\/nanoappli.com\/blog\/archives\/6290","url_meta":{"origin":6340,"position":0},"title":"XAMPP\u306eShell\u306b\u30ab\u30b9\u30bf\u30e0\u306e\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b","date":"2013\u5e741\u670812\u65e5","format":false,"excerpt":"XAMPP\u3067\u306f\u3001\u7c21\u5358\u306b\u958b\u767a\u3092\u884c\u5f97\u308b\u3088\u3046\u306b\u3059\u308b\u70baShell\u30dc\u30bf\u30f3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u3053\u308c\u3092\u4f7f\u3046\u4e8b\u3067\u3001\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2013\/01\/20130112_05.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":7620,"url":"http:\/\/nanoappli.com\/blog\/archives\/7620","url_meta":{"origin":6340,"position":1},"title":"[MySQL]ERROR 2049\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u3059\u3079\u304d\u3053\u3068 &#8220;authentication protocol refused (client option &#8216;secure_auth&#8217; enabled)&#8221;\u30a8\u30e9\u30fc","date":"2016\u5e746\u670826\u65e5","format":false,"excerpt":"MySQL\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u969b\u3001\u30a8\u30e9\u30fcERROR 2049\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306f\u3001\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6242,"url":"http:\/\/nanoappli.com\/blog\/archives\/6242","url_meta":{"origin":6340,"position":2},"title":"PHPStorm\u304b\u3089MySQL\u306b\u63a5\u7d9a\u3059\u308b","date":"2013\u5e741\u67083\u65e5","format":false,"excerpt":"PHPStorm\u306fPHP\u306eIDE\u74b0\u5883\u3067\u3059\u304c\u3001IDE\u3068\u3057\u3066JDBC\u7d4c\u7531\u3067\u306eDB\u63a5\u7d9a\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u308b\u305f\u3081\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2013\/01\/20121231_53.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":6530,"url":"http:\/\/nanoappli.com\/blog\/archives\/6530","url_meta":{"origin":6340,"position":3},"title":"[AWS]Amazon RDS\u306e\u3001MySQL 5.5\u30685.6\u306b\u5bfe\u3059\u308b\u30d1\u30c3\u30c1\u9069\u7528\u306b\u3064\u3044\u3066","date":"2014\u5e7410\u670819\u65e5","format":false,"excerpt":"AWS\u3088\u308a\u3001Amazon RDS\u306eMySQL 5.5\u30685.6\u306b\u5bfe\u3057\u3066\u3001\u30d1\u30c3\u30c1\u304c\u9069\u7528\u3055\u308c\u308b\u65e8\u306e\u30a2\u30ca\u30a6\u30f3\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4812,"url":"http:\/\/nanoappli.com\/blog\/archives\/4812","url_meta":{"origin":6340,"position":4},"title":"\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30c7\u30fc\u30bf\u3092\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3067\u81ea\u52d5\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b","date":"2012\u5e749\u670830\u65e5","format":false,"excerpt":"\u3061\u3087\u3063\u3068\u524d\u306e\u4e8b\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30d5\u30a1\u30fc\u30b9\u30c8\u30b5\u30fc\u30d0\u306e\u30c7\u30fc\u30bf\u6d88\u5931\u4e8b\u4ef6\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2012\/09\/20121008_08.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":7153,"url":"http:\/\/nanoappli.com\/blog\/archives\/7153","url_meta":{"origin":6340,"position":5},"title":"[lolipop]WordPress\u3092\u7121\u6599\u3067\u6bce\u65e5\u81ea\u52d5\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b","date":"2016\u5e742\u670821\u65e5","format":false,"excerpt":"\u30ed\u30ea\u30dd\u30c3\u30d7\u3067\u306f\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u53ef\u80fd\u3067\u3059\u3002 \u3067\u3059\u304c\u3001\u30a4\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2016\/02\/160220_002-290x290.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/6340"}],"collection":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/comments?post=6340"}],"version-history":[{"count":5,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/6340\/revisions"}],"predecessor-version":[{"id":6351,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/6340\/revisions\/6351"}],"wp:attachment":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/media?parent=6340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/categories?post=6340"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/tags?post=6340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}