天天看點

mysqlbinlog 翻譯

  --base64-output[=name]

                      Determine when the output statements should be

                      base64-encoded BINLOG statements: 'never' disables it and

                      works only for binlogs without row-based events;

                      'decode-rows' decodes row events into commented SQL

                      statements if the --verbose option is also given; 'auto'

                      prints base64 only when necessary (i.e., for row-based

                      events and format description events); 'always' prints

                      base64 whenever possible. 'always' is deprecated, will be

                      removed in a future version, and should not be used in a

                      production system.  --base64-output with no 'name'

                      argument is equivalent to --base64-output=always and is

                      also deprecated.  If no --base64-output[=name] option is

                      given at all, the default is 'auto'.

Determine when the output statements should be

确定當輸出報表應

base64-encoded BINLOG statements: 'never' disables it and

Base64編碼的binlog陳述:“從不”禁用它,

works only for binlogs without row-based events;

隻有沒有基于行的事件binlogs作品;

'decode-rows' decodes row events into commented SQL

“解碼的解碼排成排的事件發表評論,SQL

statements if the --verbose option is also given; 'auto'

陳述如果verbose選項——也給出了“自動”;

prints base64 only when necessary (i.e., for row-based

列印Base64隻在必要的時候(即,基于行的

events and format description events); 'always' prints

事件和格式描述的事件);'總是'列印

base64 whenever possible. 'always' is deprecated, will be

每當可能的功能。”總是'是過時的,将

removed in a future version, and should not be used in a

在未來的版本中删除,而不應該用在

production system. --base64-output with no 'name'

生産系統。——Base64輸出無“名字”

argument is equivalent to --base64-output=always and is

參數——Base64輸出=永遠是

also deprecated. If no --base64-output[=name] option is

也不贊成。如果沒有——Base64輸出[ =名稱]選項

given at all, the default is 'auto'.

在所有的,預設為“自動”。

  --character-sets-dir=name

                      Directory for character set files.

字元集的檔案目錄。

  -d, --database=name List entries for just this database (local log only).

  --debug-check       Check memory and open file usage at exit .

  --debug-info        Print some debug info at exit.

  --defauth=name Default authentication client-side plugin to use.ault-

Default authentication client-side plugin to use.ault-

預設的認證用戶端插件use.ault—

  -D, --disable-log-bin

                      Disable binary log. This is useful, if you enabled

                      --to-last-log and are sending the output to the same

                      MySQL server. This way you could avoid an endless loop.

                      You would also like to use it when restoring after a

                      crash to avoid duplication of the statements you already

                      have. NOTE: you will need a SUPER privilege to use this

                      option.

  -F, --force-if-open Force if binlog was not closed properly.

                      (Defaults to on; use --skip-force-if-open to disable.)

  -f, --force-read    Force reading unknown binlog events.

  -H, --hexdump       Augment output with hexadecimal and ASCII event dump.

  -h, --host=name     Get the binlog from server.

  -l, --local-load=name

                      Prepare local temporary files for LOAD DATA INFILE in the

                      specified directory.

  -o, --offset=#      Skip the first N entries.

  -p, --password[=name]

                      Password to connect to remote server.

  --plugin-dir=name   Directory for client-side plugins.

  -P, --port=#        Port number to use for connection or 0 for default to, in

                      order of preference, my.cnf, $MYSQL_TCP_PORT,

                      /etc/services, built-in default (3306).

  --protocol=name     The protocol to use for connection (tcp, socket, pipe,

                      memory).

  -R, --read-from-remote-server

                      Read binary logs from a MySQL server.

Read binary logs from a MySQL server.

從一個MySQL伺服器讀取二進制日志。

  -r, --result-file=name

                      Direct output to a given file.

  --server-id=#       Extract only binlog entries created by the server having

                      the given id.

  --set-charset=name  Add 'SET NAMES character_set' to the output.

  -s, --short-form    Just show regular queries: no extra info and no row-based

                      events. This is for testing only, and should not be used

                      in production systems. If you want to suppress

                      base64-output, consider using --base64-output=never

                      instead.

  -S, --socket=name   The socket file to use for connection.

  --start-datetime=name

                      Start reading the binlog at first event having a datetime

                      equal or posterior to the argument; the argument must be

                      a date and time in the local time zone, in any format

                      accepted by the MySQL server for DATETIME and TIMESTAMP

                      types, for example: 2004-12-25 11:25:56 (you should

                      probably use quotes for your shell to set it properly).

  -j, --start-position=#

                      Start reading the binlog at position N. Applies to the

                      first binlog passed on the command line.

  --stop-datetime=name

                      Stop reading the binlog at first event having a datetime

  --stop-position=#   Stop reading the binlog at position N. Applies to the

                      last binlog passed on the command line.

  -t, --to-last-log   Requires -R. Will not stop at the end of the requested

                      binlog but rather continue printing until the end of the

                      last binlog of the MySQL server. If you send the output

                      to the same MySQL server, that may lead to an endless

                      loop.

binlog but rather continue printing until the end of the

binlog而是繼續列印直到

last binlog of the MySQL server. If you send the output

在MySQL伺服器上binlog。如果您發送輸出

to the same MySQL server, that may lead to an endless

在相同的MySQL伺服器,這可能會導緻無休止的

loop.

環。

  -u, --user=name     Connect to the remote server as username.

Connect to the remote server as username.

繼續閱讀