现在的位置: 首页 > 综合 > 正文

MySQL mysqld 5.6.2-m5 所有 配置选项

2013年11月24日 ⁄ 综合 ⁄ 共 20582字 ⁄ 字号 评论关闭

mysqld  Ver 5.6.2-m5 for Linux on i686 (MySQL Community Server (GPL))
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 their respective
owners.

Starts the MySQL database server.

Usage: mysqld [OPTIONS]

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf

The following groups are read: mysqld server mysqld-5.6
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
--no-defaults           Don't read default options from any option file.
--defaults-file=#       Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.

  --abort-slave-event-count=#

                      Option used by mysql-test for debugging and testing of
                      replication.
  --allow-suspicious-udfs

                      Allows use of UDFs consisting of only one symbol xxx()
                      without corresponding xxx_init() or xxx_deinit(). That
                      also means that one can load any function from any
                      library, for example exit() from libc.so
  -a, --ansi          Use ANSI SQL syntax instead of MySQL syntax. This mode
                      will also set transaction isolation level 'serializable'.
  --auto-increment-increment[=#]

                      Auto-increment columns are incremented by this
  --auto-increment-offset[=#]

                      Offset added to Auto-increment columns. Used when
                      auto-increment-increment != 1
  --autocommit        Set default value for autocommit (0 or 1)
                      (Defaults to on; use --skip-autocommit to disable.)
  --automatic-sp-privileges

                      Creating and dropping stored procedures alters ACLs
                      (Defaults to on; use --skip-automatic-sp-privileges to disable.)
  --back-log=#        The number of outstanding connection requests MySQL can
                      have. This comes into play when the main MySQL thread
                      gets very many connection requests in a very short time
  -b, --basedir=name  Path to installation directory. All paths are usually
                      resolved relative to this
  --big-tables        Allow big result sets by saving all temporary sets on
                      file (Solves most 'table full' errors)
  --bind-address=name IP address to bind to.
  --binlog-cache-size=#
              The size of the transactional cache for updates to
                      transactional engines for the binary log. If you often
                      use transactions containing many statements, you can
                      increase this to get more performance
  --binlog-checksum=name

                      Type of BINLOG_CHECKSUM_ALG. Include checksum for log
                      events in the binary log. Possible values are NONE and
                      CRC32; default is NONE.
  --binlog-direct-non-transactional-updates

                      Causes updates to non-transactional engines using
                      statement format to be written directly to binary log.
                      Before using this option make sure that there are no
                      dependencies between transactional and non-transactional
                      tables such as in the statement INSERT INTO t_myisam
                      SELECT * FROM t_innodb; otherwise, slaves may diverge
                      from the master.
  --binlog-do-db=name Tells the master it should log updates for the specified
                      database, and exclude all others not explicitly
                      mentioned.
  --binlog-format=name

                      What form of binary logging the master will use: either
                      ROW for row-based binary logging, STATEMENT for
                      statement-based binary logging, or MIXED. MIXED is
                      statement-based binary logging except for those
                      statements where only row-based is correct: those which
                      involve user-defined functions (i.e. UDFs) or the UUID()
                      function; for those, row-based binary logging is
                      automatically used. If NDBCLUSTER is enabled and
                      binlog-format is MIXED, the format switches to row-based
                      and back implicitly per each query accessing an
                      NDBCLUSTER table
  --binlog-ignore-db=name

                      Tells the master that updates to the given database
                      should not be logged to the binary log.
  --binlog-row-event-max-size=#

                      The maximum size of a row-based binary log event in
                      bytes. Rows will be grouped into events smaller than this
                      size if possible. The value has to be a multiple of 256.
  --binlog-row-image=name

                      Controls whether rows should be logged in 'FULL',
                      'NOBLOB' or 'MINIMAL' formats. 'FULL', means that all
                      columns in the before and after image are logged.
                      'NOBLOB', means that mysqld avoids logging blob columns
                      whenever possible (eg, blob column was not changed or is
                      not part of primary key). 'MINIMAL', means that a PK
                      equivalent (PK columns or full row if there is no PK in
                      the table) is logged in the before image, and only
                      changed columns are logged in the after image. (Default:
                      FULL).
--binlog-rows-query-log-events

                      Allow writing of Rows_query_log events into binary log.
  --binlog-stmt-cache-size=#

                      The size of the statement cache for updates to
                      non-transactional engines for the binary log. If you
                      often use statements updating a great number of rows, you
                      can increase this to get more performance
  --bootstrap         Used by mysql installation scripts.
  --bulk-insert-buffer-size=#

                      Size of tree cache used in bulk insert optimisation. Note
                      that this is a limit per thread!
  --character-set-client-handshake

                      Don't ignore client side character set value sent during
                      handshake.
                      (Defaults to on; use --skip-character-set-client-handshake to disable.)
  --character-set-filesystem=name

                      Set the filesystem character set.
  -C, --character-set-server=name

                      Set the default character set.
  --character-sets-dir=name

                      Directory where character sets are
  -r, --chroot=name   Chroot mysqld daemon during startup.
  --collation-server=name

                      Set the default collation.
  --completion-type=name

                      The transaction completion type, one of NO_CHAIN, CHAIN,
                      RELEASE
  --concurrent-insert[=name]

                      Use concurrent insert with MyISAM. Possible values are
                      NEVER, AUTO, ALWAYS
  --connect-timeout=# The number of seconds the mysqld server is waiting for a
                      connect packet before responding with 'Bad handshake'
  --console           Write error output on screen; don't remove the console
                      window on windows.
  --core-file         Write core on errors.
  -h, --datadir=name  Path to the database root directory
  --date-format=name  The DATE format (ignored)
  --datetime-format=name

                      The DATETIME format (ignored)
  --default-storage-engine=name

                      The default storage engine for new tables
  --default-time-zone=name

                      Set the default time zone.
  --default-week-format=#

                      The default week format used by WEEK() functions
  --delay-key-write[=name]

                      Type of DELAY_KEY_WRITE
  --delayed-insert-limit=#

                      After inserting delayed_insert_limit rows, the INSERT
              DELAYED handler will check if there are any SELECT
                      statements pending. If so, it allows these to execute
                      before continuing
  --delayed-insert-timeout=#

                      How long a INSERT DELAYED thread should wait for INSERT
                      statements before terminating
  --delayed-queue-size=#

                      What size queue (in rows) should be allocated for
                      handling INSERT DELAYED. If the queue becomes full, any
                      client that does INSERT DELAYED will wait until there is
                      room in the queue again
  --des-key-file=name Load keys for des_encrypt() and des_encrypt from given
                      file.
  --disconnect-slave-event-count=#

                      Option used by mysql-test for debugging and testing of
                      replication.
  --div-precision-increment=#

                      Precision of the result of '/' operator will be increased
                      on that value
  --event-scheduler[=name]

                      Enable the event scheduler. Possible values are ON, OFF,
                      and DISABLED (keep the event scheduler completely
                      deactivated, it cannot be activated run-time)
  -T, --exit-info[=#] Used for debugging. Use at your own risk.
  --expire-logs-days=#

                      If non-zero, binary logs will be purged after
                      expire_logs_days days; possible purges happen at startup
                      and at binary log rotation
  --external-locking  Use system (external) locking (disabled by default).

                      With this option enabled you can run myisamchk to test
                      (not repair) tables while the MySQL server is running.
                      Disable with --skip-external-locking.
  --flush             Flush MyISAM tables to disk between SQL commands
  --flush-time=#      A dedicated thread is created to flush all tables at the
                      given interval
  --ft-boolean-syntax=name

                      List of operators for MATCH ... AGAINST ( ... IN BOOLEAN
                      MODE)
  --ft-max-word-len=# The maximum length of the word to be included in a
                      FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
                      after changing this variable
  --ft-min-word-len=# The minimum length of the word to be included in a
                      FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
                      after changing this variable
  --ft-query-expansion-limit=#

                      Number of best matches to use for query expansion
  --ft-stopword-file=name

                      Use stopwords from this file instead of built-in list
  --gdb               Set up signals usable for debugging.
--general-log       Log connections and queries to a table or log file.
                      Defaults logging to a file hostname.log or a table
                      mysql.general_logif --log-output=TABLE is used
  --general-log-file=name

                      Log connections and queries to given file
  --group-concat-max-len=#

                      The maximum length of the result of function

                      GROUP_CONCAT()
  -?, --help          Display this help and exit.
  --ignore-builtin-innodb

                      Disable initialization of builtin InnoDB plugin
  --init-connect=name Command(s) that are executed for each new connection
  --init-file=name    Read SQL commands from this file at startup
  --init-slave=name   Command(s) that are executed by a slave server each time
                      the SQL thread starts
  --interactive-timeout=#

                      The number of seconds the server waits for activity on an
                      interactive connection before closing it
  --join-buffer-size=#

                      The size of the buffer that is used for full joins
  --keep-files-on-create

                      Don't overwrite stale .MYD and .MYI even if no directory
                      is specified
  --key-buffer-size=# The size of the buffer used for index blocks for MyISAM
                      tables. Increase this to get better index handling (for
                      all reads and multiple writes) to as much as you can
                      afford
  --key-cache-age-threshold=#

                      This characterizes the number of hits a hot block has to
                      be untouched until it is considered aged enough to be
                      downgraded to a warm block. This specifies the percentage
                      ratio of that number of hits to the total number of
                      blocks in key cache
  --key-cache-block-size=#

                      The default size of key cache blocks
  --key-cache-division-limit=#

                      The minimum percentage of warm blocks in key cache
  -L, --language=name Client error messages in given language. May be given as
                      a full path. Deprecated. Use --lc-messages-dir instead.
  --large-pages       Enable support for large pages
  --lc-messages=name  Set the language used for the error messages.
  --lc-messages-dir=name

                      Directory where error messages are
  --lc-time-names=name

                      Set the language used for the month names and the days of
                      the week.
  --local-infile      Enable LOAD DATA LOCAL INFILE
                      (Defaults to on; use --skip-local-infile to disable.)
  --lock-wait-timeout=#

                                    Timeout in seconds to wait for a lock before returning an
                      error.
  --log-bin[=name]    Log update queries in binary format. Optional (but
                      strongly recommended to avoid replication problems if
                      server's hostname changes) argument should be the chosen
                      location for the binary log files.
  --log-bin-index=name

                      File that holds the names for binary log files.
  --log-bin-trust-function-creators

                      If set to FALSE (the default), then when --log-bin is
                      used, creation of a stored function (or trigger) is
                      allowed only to users having the SUPER privilege and only
                      if this stored function (trigger) may not break binary
                      logging. Note that if ALL connections to this server
                      ALWAYS use row-based binary logging, the security issues
                      do not exist and the binary logging cannot break, so you
                      can safely set this to TRUE
  --log-error[=name]  Error log file
  --log-isam[=name]   Log all MyISAM changes to file.
  --log-output=name   Syntax: log-output=value[,value...], where "value" could
                      be TABLE, FILE or NONE
  --log-queries-not-using-indexes

                      Log queries that are executed without benefit of any
                      index to the slow log if it is open
  --log-short-format  Don't log extra information to update and slow-query
                      logs.
  --log-slave-updates Tells the slave to log the updates from the slave thread
                      to the binary log. You will need to turn it on if you
                      plan to daisy-chain the slaves
  --log-slow-admin-statements

                      Log slow OPTIMIZE, ANALYZE, ALTER and other
                      administrative statements to the slow log if it is open.
  --log-slow-slave-statements

                      Log slow statements executed by slave thread to the slow
                      log if it is open.
  --log-tc=name       Path to transaction coordinator log (used for
                      transactions that affect more than one storage engine,
                      when binary log is disabled).
  --log-tc-size=#     Size of transaction coordinator log.
  -W, --log-warnings[=#]

                      Log some not critical warnings to the log file
  --long-query-time=# Log all queries that have taken more than long_query_time
                      seconds to execute to file. The argument will be treated
                      as a decimal value with microsecond precision
  --low-priority-updates

                      INSERT/DELETE/UPDATE has lower priority than selects
  --lower-case-table-names[=#]

                      If set to 1 table names are stored in lowercase on disk
                      and table names will be case-insensitive.  Should be set
                      to 2 if you are using a case insensitive file system
  --master-info-file=name

                      The location and name of the file that remembers the
                      master and where the I/O replication thread is in the
                      master's binlogs.
  --master-info-repository=name

                      Defines the type of the repository for the master
                      information.
  --master-retry-count=#

                      The number of tries the slave will make to connect to the
                      master before giving up. Deprecated option, use 'CHANGE
                      MASTER TO master_retry_count = <num>' instead.
  --master-verify-checksum

                      Force checksum verification of logged events in binary
                      log before sending them to slaves or printing them in
                      output of SHOW BINLOG EVENTS. Disabled by default.
  --max-allowed-packet=#

                      Max packet length to send to or receive from the server
  --max-binlog-cache-size=#

                      Sets the total size of the transactional cache
  --max-binlog-dump-events=#

                      Option used by mysql-test for debugging and testing of
                      replication.
  --max-binlog-size=# Binary log will be rotated automatically when the size
                      exceeds this value. Will also apply to relay logs if
                      max_relay_log_size is 0
  --max-binlog-stmt-cache-size=#

                      Sets the total size of the statement cache
  --max-connect-errors=#

                      If there is more than this number of interrupted
                      connections from a host this host will be blocked from
                      further connections
  --max-connections=# The number of simultaneous clients allowed
  --max-delayed-threads=#

                      Don't start more than this number of threads to handle
                      INSERT DELAYED statements. If set to zero INSERT DELAYED
                      will be not used
  --max-error-count=# Max number of errors/warnings to store for a statement
  --max-heap-table-size=#

                      Don't allow creation of heap tables bigger than this
  --max-join-size=#   Joins that are probably going to read more than
                      max_join_size records return an error
  --max-length-for-sort-data=#

                      Max number of bytes in sorted records
  --max-prepared-stmt-count=#

                      Maximum number of prepared statements in the server
  --max-relay-log-size=#

                      If non-zero: relay log will be rotated automatically when
                      the size exceeds this value; if zero: when the size
                      exceeds max_binlog_size
  --max-seeks-for-key=#

                      Limit assumed max number of seeks when looking up rows
                      based on a key
  --max-sort-length=# The number of bytes to use when sorting BLOB or TEXT
                      values (only the first max_sort_length bytes of each
                      value are used; the rest are ignored)
  --max-sp-recursion-depth[=#]

                      Maximum stored procedure recursion depth
  --max-tmp-tables=#  Maximum number of temporary tables a client can keep open
                      at a time
  --max-user-connections=#

                      The maximum number of active connections for a single
                      user (0 = no limit)
  --max-write-lock-count=#

                      After this many write locks, allow some read locks to run
                      in between
  --memlock           Lock mysqld in memory.
  --min-examined-row-limit=#

                      Don't write queries to slow log that examine fewer rows
                      than that
  --multi-range-count=#

                      Number of key ranges to request at once
  --net-buffer-length=#

                      Buffer length for TCP/IP and socket communication
  --net-read-timeout=#

                      Number of seconds to wait for more data from a connection
                      before aborting the read
  --net-retry-count=# If a read on a communication port is interrupted, retry
                      this many times before giving up
  --net-write-timeout=#

                      Number of seconds to wait for a block to be written to a
                      connection before aborting the write
  -n, --new           Use very new possible "unsafe" functions
  --old               Use compatible behavior
  --old-alter-table   Use old, non-optimized alter table
  --old-passwords     Use old password encryption method (needed for 4.0 and
                      older clients)
  --old-style-user-limits

                      Enable old-style user limits (before 5.0.3, user
                      resources were counted per each user+host vs. per
                      account).
  --open-files-limit=#

                      If this is not 0, then mysqld will use this value to
                      reserve file descriptors to use with setrlimit(). If this
                      value is 0 then mysqld will reserve max_connections*5 or
                      max_connections + table_cache*2 (whichever is larger)
                      number of file descriptors
  --optimizer-join-cache-level=#

                      Controls what join operations can be executed with join
                      buffers. Odd numbers are used for plain join buffers
                      while even numbers are used for linked buffers
  --optimizer-prune-level=#

                      Controls the heuristic(s) applied during query
                      optimization to prune less-promising partial plans from
                      the optimizer search space. Meaning: 0 - do not apply any
                      heuristic, thus perform exhaustive search; 1 - prune
                      plans based on number of retrieved rows
  --optimizer-search-depth=#

                      Maximum depth of search performed by the query optimizer.
                      Values larger than the number of relations in a query
                      result in better query plans, but take longer to compile
                      a query. Values smaller than the number of tables in a
                      relation result in faster optimization, but may produce
                      very bad query plans. If set to 0, the system will
                      automatically pick a reasonable value
  --optimizer-switch=name

                  

抱歉!评论已关闭.