Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 49.83 KB | None | 0 0
  1. Usage: ./bin/mysqld [OPTIONS]
  2.  
  3. Default options are read from the following files in the given order:
  4. /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
  5. The following groups are read: mysqld server mysqld-5.1
  6. The following options may be given as the first argument:
  7. --print-defaults        Print the program argument list and exit.
  8. --no-defaults           Don't read default options from any option file.
  9. --defaults-file=#       Only read default options from the given file #.
  10. --defaults-extra-file=# Read this file after the global files are read.
  11.  
  12.  --abort-slave-event-count=#
  13.                      Option used by mysql-test for debugging and testing of
  14.                      replication.
  15.  --allow-suspicious-udfs
  16.                      Allows use of UDFs consisting of only one symbol xxx()
  17.                      without corresponding xxx_init() or xxx_deinit(). That
  18.                      also means that one can load any function from any
  19.                      library, for example exit() from libc.so
  20.  -a, --ansi          Use ANSI SQL syntax instead of MySQL syntax. This mode
  21.                      will also set transaction isolation level 'serializable'.
  22.  --auto-increment-increment[=#]
  23.                      Auto-increment columns are incremented by this.
  24.  --auto-increment-offset[=#]
  25.                      Offset added to Auto-increment columns. Used when
  26.                      auto-increment-increment != 1.
  27.  --automatic-sp-privileges
  28.                      Creating and dropping stored procedures alters ACLs.
  29.                      Disable with --skip-automatic-sp-privileges.
  30.  --back_log=#        The number of outstanding connection requests MySQL can
  31.                      have. This comes into play when the main MySQL thread
  32.                      gets very many connection requests in a very short time.
  33.  -b, --basedir=name  Path to installation directory. All paths are usually
  34.                      resolved relative to this.
  35.  --big-tables        Allow big result sets by saving all temporary sets on
  36.                      file (solves most 'table full' errors).
  37.  --bind-address=name IP address to bind to.
  38.  --binlog-direct-non-transactional-updates
  39.                      Causes updates to non-transactional engines using
  40.                      statement format to be written directly to binary log.
  41.                      Before using this option, make sure that there are no
  42.                      dependencies between transactional and non-transactional
  43.                      tables such as in the statement INSERT INTO t_myisam
  44.                      SELECT * FROM t_innodb; otherwise, slaves may diverge
  45.                      from the master.
  46.  --binlog-do-db=name Tells the master it should log updates for the specified
  47.                      database, and exclude all others not explicitly
  48.                      mentioned.
  49.  --binlog-ignore-db=name
  50.                      Tells the master that updates to the given database
  51.                      should not be logged to the binary log.
  52.  --binlog-row-event-max-size=#
  53.                      The maximum size of a row-based binary log event in
  54.                      bytes. Rows will be grouped into events smaller than this
  55.                      size if possible. The value has to be a multiple of 256.
  56.  --binlog_cache_size=#
  57.                      The size of the cache to hold the SQL statements for the
  58.                      binary log during a transaction. If you often use big,
  59.                      multi-statement transactions you can increase this to get
  60.                      more performance.
  61.  --binlog_format=name
  62.                      Does not have any effect without '--log-bin'. Tell the
  63.                      master the form of binary logging to use: either 'row'
  64.                      for row-based binary logging, 'statement' for
  65.                      statement-based binary logging, or 'mixed'. 'mixed' is
  66.                      statement-based binary logging except for statements
  67.                      where only row-based is correct: Statements that involve
  68.                      user-defined functions (i.e., UDFs) or the UUID()
  69.                      function.
  70.  --bootstrap         Used by mysql installation scripts.
  71.  --bulk_insert_buffer_size=#
  72.                      Size of tree cache used in bulk insert optimization. Note
  73.                      that this is a limit per thread.
  74.  --character-set-client-handshake
  75.                      Don't ignore client side character set value sent during
  76.                       handshake.
  77.   --character-set-filesystem=name
  78.                       Set the filesystem character set.
  79.   -C, --character-set-server=name
  80.                       Set the default character set.
  81.   --character-sets-dir=name
  82.                       Directory where character sets are.
  83.   -r, --chroot=name   Chroot mysqld daemon during startup.
  84.   --collation-server=name
  85.                       Set the default collation.
  86.   --completion-type=# Default completion type.
  87.   --concurrent-insert[=#]
  88.                       Use concurrent insert with MyISAM. Disable with
  89.                       --concurrent-insert=0.
  90.   --connect_timeout=# The number of seconds the mysqld server is waiting for a
  91.                       connect packet before responding with 'Bad handshake'.
  92.   --console           Write error output on screen; don't remove the console
  93.                      window on windows.
  94.  --core-file         Write core on errors.
  95.  -h, --datadir=name  Path to the database root.
  96.  --datetime_format=name
  97.                      The DATETIME/TIMESTAMP format (for future).
  98.  --date_format=name  The DATE format (for future).
  99.  --default-character-set=name
  100.                      Set the default character set (deprecated option, use
  101.                      --character-set-server instead).
  102.  --default-collation=name
  103.                      Set the default collation (deprecated option, use
  104.                      --collation-server instead).
  105.  --default-storage-engine=name
  106.                      Set the default storage engine (table type) for tables.
  107.  --default-table-type=name
  108.                      (deprecated) Use --default-storage-engine.
  109.  --default-time-zone=name
  110.                      Set the default time zone.
  111.  --default_week_format=#
  112.                      The default week format used by WEEK() functions.
  113.  --delay-key-write[=name]
  114.                      Type of DELAY_KEY_WRITE.
  115.  --delay-key-write-for-all-tables
  116.                      Don't flush key buffers between writes for any MyISAM
  117.                       table. (Deprecated option, use --delay-key-write=all
  118.                       instead.)
  119.   --delayed_insert_limit=#
  120.                       After inserting delayed_insert_limit rows, the INSERT
  121.                       DELAYED handler will check if there are any SELECT
  122.                       statements pending. If so, it allows these to execute
  123.                       before continuing.
  124.   --delayed_insert_timeout=#
  125.                       How long a INSERT DELAYED thread should wait for INSERT
  126.                       statements before terminating.
  127.   --delayed_queue_size=#
  128.                       What size queue (in rows) should be allocated for
  129.                       handling INSERT DELAYED. If the queue becomes full, any
  130.                       client that does INSERT DELAYED will wait until there is
  131.                       room in the queue again.
  132.   --des-key-file=name Load keys for des_encrypt() and des_encrypt from given
  133.                       file.
  134.   --disconnect-slave-event-count=#
  135.                       Option used by mysql-test for debugging and testing of
  136.                       replication.
  137.   --div_precision_increment=#
  138.                       Precision of the result of '/' operator will be increased
  139.                       on that value.
  140.   --enable-locking    Deprecated option, use --external-locking instead.
  141.   --engine-condition-pushdown
  142.                       Push supported query conditions to the storage engine.
  143.   --event-scheduler[=name]
  144.                       Enable/disable the event scheduler.
  145.   -T, --exit-info[=#] Used for debugging. Use at your own risk.
  146.   --expire_logs_days=#
  147.                       If non-zero, binary logs will be purged after
  148.                       expire_logs_days days; possible purges happen at startup
  149.                       and at binary log rotation.
  150.   --external-locking  Use system (external) locking (disabled by default).
  151.                       With this option enabled you can run myisamchk to test
  152.                       (not repair) tables while the MySQL server is running.
  153.                       Disable with --skip-external-locking.
  154.   --flush             Flush tables to disk between SQL commands.
  155.   --flush_time=#      A dedicated thread is created to flush all tables at the
  156.                       given interval.
  157.   --ft_boolean_syntax=name
  158.                       List of operators for MATCH ... AGAINST ( ... IN BOOLEAN
  159.                       MODE).
  160.   --ft_max_word_len=# The maximum length of the word to be included in a
  161.                       FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
  162.                       after changing this variable.
  163.   --ft_min_word_len=# The minimum length of the word to be included in a
  164.                       FULLTEXT index. Note: FULLTEXT indexes must be rebuilt
  165.                       after changing this variable.
  166.   --ft_query_expansion_limit=#
  167.                       Number of best matches to use for query expansion.
  168.   --ft_stopword_file=name
  169.                       Use stopwords from this file instead of built-in list.
  170.   --gdb               Set up signals usable for debugging.
  171.   --general_log       Enable/disable general log.
  172.   --general_log_file=name
  173.                       Log connections and queries to given file.
  174.   --group_concat_max_len=#
  175.                       The maximum length of the result of function
  176.                       group_concat.
  177.   -?, --help          Display this help and exit.
  178.   --ignore-builtin-innodb
  179.                       Disable initialization of builtin InnoDB plugin.
  180.   --init-connect=name Command(s) that are executed for each new connection.
  181.   --init-file=name    Read SQL commands from this file at startup.
  182.   --init-rpl-role=name
  183.                       Set the replication role.
  184.   --init-slave=name   Command(s) that are executed by a slave server each time
  185.                       the SQL thread starts.
  186.   --innodb[=#]        Enable or disable InnoDB plugin. Possible values are ON,
  187.                       OFF, FORCE (don't start if the plugin fails to load).
  188.  --innodb-adaptive-hash-index
  189.                      Enable InnoDB adaptive hash index (enabled by default).
  190.                      Disable with --skip-innodb-adaptive-hash-index.
  191.  --innodb-additional-mem-pool-size=#
  192.                      Size of a memory pool InnoDB uses to store data
  193.                      dictionary information and other internal data
  194.                      structures.
  195.  --innodb-autoextend-increment=#
  196.                      Data file autoextend increment in megabytes
  197.  --innodb-autoinc-lock-mode=#
  198.                      The AUTOINC lock modes supported by InnoDB:
  199.                      0 => Old style AUTOINC locking (for backward
  200.                      compatibility)
  201.                      1 => New style AUTOINC locking
  202.                      2 => No AUTOINC locking (unsafe for SBR)
  203.  --innodb-buffer-pool-size=#
  204.                      The size of the memory buffer InnoDB uses to cache data
  205.                      and indexes of its tables.
  206.  --innodb-checksums  Enable InnoDB checksums validation (enabled by default).
  207.                      Disable with --skip-innodb-checksums.
  208.  --innodb-commit-concurrency=#
  209.                      Helps in performance tuning in heavily concurrent
  210.                      environments.
  211.  --innodb-concurrency-tickets=#
  212.                      Number of times a thread is allowed to enter InnoDB
  213.                      within the same SQL query after it has once got the
  214.                      ticket
  215.  --innodb-data-file-path=name
  216.                      Path to individual files and their sizes.
  217.  --innodb-data-home-dir=name
  218.                      The common part for InnoDB table spaces.
  219.  --innodb-doublewrite
  220.                      Enable InnoDB doublewrite buffer (enabled by default).
  221.                      Disable with --skip-innodb-doublewrite.
  222.  --innodb-fast-shutdown[=#]
  223.                      Speeds up the shutdown process of the InnoDB storage
  224.                      engine. Possible values are 0, 1 (faster) or 2 (fastest -
  225.                      crash-like).
  226.  --innodb-file-io-threads=#
  227.                      Number of file I/O threads in InnoDB.
  228.  --innodb-file-per-table
  229.                      Stores each InnoDB table to an .ibd file in the database
  230.                      dir.
  231.  --innodb-flush-log-at-trx-commit[=#]
  232.                      Set to 0 (write and flush once per second), 1 (write and
  233.                      flush at each commit) or 2 (write at commit, flush once
  234.                      per second).
  235.  --innodb-flush-method=name
  236.                      With which method to flush data.
  237.  --innodb-force-recovery=#
  238.                      Helps to save your data in case the disk image of the
  239.                      database becomes corrupt.
  240.  --innodb-lock-wait-timeout=#
  241.                      Timeout in seconds an InnoDB transaction may wait for a
  242.                      lock before being rolled back.
  243.  --innodb-locks-unsafe-for-binlog
  244.                      Force InnoDB to not use next-key locking, to use only
  245.                      row-level locking.
  246.  --innodb-log-buffer-size=#
  247.                      The size of the buffer which InnoDB uses to write log to
  248.                      the log files on disk.
  249.  --innodb-log-file-size=#
  250.                      Size of each log file in a log group.
  251.  --innodb-log-files-in-group=#
  252.                      Number of log files in the log group. InnoDB writes to
  253.                      the files in a circular fashion. Value 3 is recommended
  254.                      here.
  255.  --innodb-log-group-home-dir=name
  256.                      Path to InnoDB log files.
  257.  --innodb-max-dirty-pages-pct=#
  258.                      Percentage of dirty pages allowed in bufferpool.
  259.  --innodb-max-purge-lag=#
  260.                      Desired maximum length of the purge queue (0 = no limit)
  261.  --innodb-mirrored-log-groups=#
  262.                      Number of identical copies of log groups we keep for the
  263.                      database. Currently this should be set to 1.
  264.  --innodb-open-files=#
  265.                      How many files at the maximum InnoDB keeps open at the
  266.                      same time.
  267.  --innodb-rollback-on-timeout
  268.                      Roll back the complete transaction on lock wait timeout,
  269.                      for 4.x compatibility (disabled by default)
  270.  --innodb-stats-on-metadata
  271.                      Enable statistics gathering for metadata commands such as
  272.                      SHOW TABLE STATUS (on by default)
  273.  --innodb-status-file
  274.                      Enable SHOW INNODB STATUS output in the
  275.                      innodb_status.<pid> file
  276.  --innodb-support-xa Enable InnoDB support for the XA two-phase commit
  277.  --innodb-sync-spin-loops=#
  278.                      Count of spin-loop rounds in InnoDB mutexes
  279.  --innodb-table-locks
  280.                      Enable InnoDB locking in LOCK TABLES
  281.  --innodb-thread-concurrency=#
  282.                      Helps in performance tuning in heavily concurrent
  283.                      environments. Sets the maximum number of threads allowed
  284.                      inside InnoDB. Value 0 will disable the thread
  285.                      throttling.
  286.  --innodb-thread-sleep-delay=#
  287.                      Time of innodb thread sleeping before joining InnoDB
  288.                      queue (usec). Value 0 disable a sleep
  289.  --innodb-use-legacy-cardinality-algorithm
  290.                      Use legacy algorithm for picking random pages during
  291.                      index cardinality estimation. Disable this to use a
  292.                      better algorithm, but note that your query plans may
  293.                      change (enabled by default).
  294.  --interactive_timeout=#
  295.                      The number of seconds the server waits for activity on an
  296.                      interactive connection before closing it.
  297.  --join_buffer_size=#
  298.                      The size of the buffer that is used for full joins.
  299.  --keep_files_on_create
  300.                      Don't overwrite stale .MYD and .MYI even if no directory
  301.                       is specified.
  302.   --key_buffer_size=# The size of the buffer used for index blocks for MyISAM
  303.                       tables. Increase this to get better index handling (for
  304.                       all reads and multiple writes) to as much as you can
  305.                       afford; 1GB on a 4GB machine that mainly runs MySQL is
  306.                       quite common.
  307.   --key_cache_age_threshold=#
  308.                       This characterizes the number of hits a hot block has to
  309.                       be untouched until it is considered aged enough to be
  310.                       downgraded to a warm block. This specifies the percentage
  311.                       ratio of that number of hits to the total number of
  312.                       blocks in key cache.
  313.   --key_cache_block_size=#
  314.                       The default size of key cache blocks.
  315.   --key_cache_division_limit=#
  316.                       The minimum percentage of warm blocks in key cache.
  317.   -L, --language=name Client error messages in given language. May be given as
  318.                       a full path.
  319.   --large-pages       Enable support for large pages. Disable with
  320.                       --skip-large-pages.
  321.   --lc-time-names=name
  322.                       Set the language used for the month names and the days of
  323.                       the week.
  324.   --local-infile      Enable/disable LOAD DATA LOCAL INFILE (takes values 1 or
  325.                       0).
  326.   -l, --log[=name]    Log connections and queries to file (deprecated option,
  327.                       use --general_log/--general_log_file instead).
  328.   --log-bin[=name]    Log update queries in binary format. Optional (but
  329.                       strongly recommended to avoid replication problems if
  330.                       server's hostname changes) argument should be the chosen
  331.                      location for the binary log files.
  332.  --log-bin-index=name
  333.                      File that holds the names for last binary log files.
  334.  --log-bin-trust-function-creators
  335.                      If equal to 0 (the default), then when --log-bin is used,
  336.                      creation of a stored function (or trigger) is allowed
  337.                      only to users having the SUPER privilege, and only if
  338.                      this stored function (trigger) may not break binary
  339.                      logging.Note that if ALL connections to this server
  340.                      ALWAYS use row-based binary logging, the security issues
  341.                      do not exist and the binary logging cannot break, so you
  342.                      can safely set this to 1.
  343.  --log-bin-trust-routine-creators
  344.                      (deprecated) Use log-bin-trust-function-creators.
  345.  --log-error[=name]  Error log file.
  346.  --log-isam[=name]   Log all MyISAM changes to file.
  347.  -0, --log-long-format
  348.                      Log some extra information to update log. Please note
  349.                      that this option is deprecated; see --log-short-format
  350.                      option.
  351.  --log-output[=name] Syntax: log-output[=value[,value...]], where "value"
  352.                      could be TABLE, FILE or NONE.
  353.  --log-queries-not-using-indexes
  354.                      Log queries that are executed without benefit of any
  355.                      index to the slow log if it is open.
  356.  --log-short-format  Don't log extra information to update and slow-query
  357.                       logs.
  358.   --log-slave-updates Tells the slave to log the updates from the slave thread
  359.                       to the binary log. You will need to turn it on if you
  360.                       plan to daisy-chain the slaves.
  361.   --log-slow-admin-statements
  362.                       Log slow OPTIMIZE, ANALYZE, ALTER and other
  363.                       administrative statements to the slow log if it is open.
  364.   --log-slow-slave-statements
  365.                       Log slow statements executed by slave thread to the slow
  366.                       log if it is open.
  367.   --log-tc=name       Path to transaction coordinator log (used for
  368.                       transactions that affect more than one storage engine,
  369.                       when binary log is disabled).
  370.   --log-tc-size=#     Size of transaction coordinator log.
  371.   --log-update[=name] The update log is deprecated since version 5.0, is
  372.                       replaced by the binary log and this option just turns on
  373.                       --log-bin instead.
  374.   -W, --log-warnings[=#]
  375.                       Log some not critical warnings to the log file.
  376.   --log_slow_queries[=name]
  377.                       Log slow queries to a table or log file. Defaults logging
  378.                       to table mysql.slow_log or hostname-slow.log if
  379.                       --log-output=file is used. Must be enabled to activate
  380.                       other slow log options. (deprecated option, use
  381.                       --slow_query_log/--slow_query_log_file instead)
  382.   --long_query_time=# Log all queries that have taken more than long_query_time
  383.                       seconds to execute. The argument will be treated as a
  384.                       decimal value with microsecond precision.
  385.   --low-priority-updates
  386.                       INSERT/DELETE/UPDATE has lower priority than selects.
  387.   --lower_case_table_names[=#]
  388.                       If set to 1, table names are stored in lowercase on disk
  389.                       and table names will be case-insensitive.  Should be set
  390.                       to 2 if you are using a case-insensitive file system.
  391.   --master-connect-retry=#
  392.                       The number of seconds the slave thread will sleep before
  393.                       retrying to connect to the master, in case the master
  394.                       goes down or the connection is lost.
  395.   --master-host=name  Master hostname or IP address for replication. If not
  396.                       set, the slave thread will not be started. Note that the
  397.                       setting of master-host will be ignored if there exists a
  398.                       valid master.info file.
  399.   --master-info-file=name
  400.                       The location and name of the file that remembers the
  401.                       master and where the I/O replication thread is in the
  402.                       master's binlogs.
  403.  --master-password=name
  404.                      The password the slave thread will authenticate with when
  405.                      connecting to the master. If not set, an empty password
  406.                      is assumed. The value in master.info will take precedence
  407.                      if it can be read.
  408.  --master-port=#     The port the master is listening on. If not set, the
  409.                      compiled setting of MYSQL_PORT is assumed. If you have
  410.                      not tinkered with configure options, this should be 3306.
  411.                      The value in master.info will take precedence if it can
  412.                      be read.
  413.  --master-retry-count=#
  414.                      The number of tries the slave will make to connect to the
  415.                      master before giving up.
  416.  --master-ssl        Enable the slave to connect to the master using SSL.
  417.  --master-ssl-ca[=name]
  418.                      Master SSL CA file. Only applies if you have enabled
  419.                      master-ssl.
  420.  --master-ssl-capath[=name]
  421.                      Master SSL CA path. Only applies if you have enabled
  422.                      master-ssl.
  423.  --master-ssl-cert[=name]
  424.                      Master SSL certificate file name. Only applies if you
  425.                      have enabled master-ssl.
  426.  --master-ssl-cipher[=name]
  427.                      Master SSL cipher. Only applies if you have enabled
  428.                      master-ssl.
  429.  --master-ssl-key[=name]
  430.                      Master SSL keyfile name. Only applies if you have enabled
  431.                      master-ssl.
  432.  --master-user=name  The username the slave thread will use for authentication
  433.                      when connecting to the master. The user must have FILE
  434.                      privilege. If the master user is not set, user test is
  435.                      assumed. The value in master.info will take precedence if
  436.                      it can be read.
  437.  --max-binlog-dump-events=#
  438.                      Option used by mysql-test for debugging and testing of
  439.                      replication.
  440.  --max_allowed_packet=#
  441.                      The maximum packet length to send to or receive from
  442.                      server.
  443.  --max_binlog_cache_size=#
  444.                      Can be used to restrict the total size used to cache a
  445.                      multi-transaction query.
  446.  --max_binlog_size=# Binary log will be rotated automatically when the size
  447.                      exceeds this value. Will also apply to relay logs if
  448.                      max_relay_log_size is 0. The minimum value for this
  449.                      variable is 4096.
  450.  --max_connections=# The number of simultaneous clients allowed.
  451.  --max_connect_errors=#
  452.                      If there is more than this number of interrupted
  453.                      connections from a host this host will be blocked from
  454.                      further connections.
  455.  --max_delayed_threads=#
  456.                      Don't start more than this number of threads to handle
  457.                       INSERT DELAYED statements. If set to zero, which means
  458.                       INSERT DELAYED is not used.
  459.   --max_error_count=# Max number of errors/warnings to store for a statement.
  460.   --max_heap_table_size=#
  461.                       Don't allow creation of heap tables bigger than this.
  462.  --max_join_size=#   Joins that are probably going to read more than
  463.                      max_join_size records return an error.
  464.  --max_length_for_sort_data=#
  465.                      Max number of bytes in sorted records.
  466.  --max_prepared_stmt_count=#
  467.                      Maximum number of prepared statements in the server.
  468.  --max_relay_log_size=#
  469.                      If non-zero: relay log will be rotated automatically when
  470.                      the size exceeds this value; if zero (the default): when
  471.                      the size exceeds max_binlog_size. 0 excepted, the minimum
  472.                      value for this variable is 4096.
  473.  --max_seeks_for_key=#
  474.                      Limit assumed max number of seeks when looking up rows
  475.                      based on a key.
  476.  --max_sort_length=# The number of bytes to use when sorting BLOB or TEXT
  477.                      values (only the first max_sort_length bytes of each
  478.                      value are used; the rest are ignored).
  479.  --max_sp_recursion_depth[=#]
  480.                      Maximum stored procedure recursion depth. (discussed with
  481.                      docs).
  482.  --max_tmp_tables=#  Maximum number of temporary tables a client can keep open
  483.                      at a time.
  484.  --max_user_connections=#
  485.                      The maximum number of active connections for a single
  486.                      user (0 = no limit).
  487.  --max_write_lock_count=#
  488.                      After this many write locks, allow some read locks to run
  489.                      in between.
  490.  --memlock           Lock mysqld in memory.
  491.  --min_examined_row_limit=#
  492.                      Don't log queries which examine less than
  493.                       min_examined_row_limit rows to file.
  494.   --multi_range_count=#
  495.                       Number of key ranges to request at once.
  496.   --myisam-recover[=name]
  497.                       Syntax: myisam-recover[=option[,option...]], where option
  498.                       can be DEFAULT, BACKUP, FORCE or QUICK.
  499.   --myisam_block_size=#
  500.                       Block size to be used for MyISAM index pages.
  501.   --myisam_data_pointer_size=#
  502.                       Default pointer size to be used for MyISAM tables.
  503.   --myisam_max_extra_sort_file_size=#
  504.                       This is a deprecated option that does nothing anymore. It
  505.                       will be removed in MySQL 5.6
  506.   --myisam_max_sort_file_size=#
  507.                       Don't use the fast sort index method to created index if
  508.                      the temporary file would get bigger than this.
  509.  --myisam_mmap_size=#
  510.                      Can be used to restrict the total memory used for memory
  511.                      mmaping of myisam files
  512.  --myisam_repair_threads=#
  513.                      Specifies whether several threads should be used when
  514.                      repairing MyISAM tables. For values > 1, one thread is
  515.                      used per index. The value of 1 disables parallel repair.
  516.  --myisam_sort_buffer_size=#
  517.                      The buffer that is allocated when sorting the index when
  518.                      doing a REPAIR or when creating indexes with CREATE INDEX
  519.                      or ALTER TABLE.
  520.  --myisam_stats_method=name
  521.                      Specifies how MyISAM index statistics collection code
  522.                      should threat NULLs. Possible values of name are
  523.                      "nulls_unequal" (default behavior for 4.1/5.0),
  524.                      "nulls_equal" (emulate 4.0 behavior), and
  525.                      "nulls_ignored".
  526.  --myisam_use_mmap   Use memory mapping for reading and writing MyISAM tables.
  527.  --ndb-use-copying-alter-table
  528.                      Force ndbcluster to always copy tables at alter table
  529.                      (should only be used if on-line alter table fails).
  530.  --net_buffer_length=#
  531.                      Buffer length for TCP/IP and socket communication.
  532.  --net_read_timeout=#
  533.                      Number of seconds to wait for more data from a connection
  534.                      before aborting the read.
  535.  --net_retry_count=# If a read on a communication port is interrupted, retry
  536.                      this many times before giving up.
  537.  --net_write_timeout=#
  538.                      Number of seconds to wait for a block to be written to a
  539.                      connection before aborting the write.
  540.  -n, --new           Use very new, possibly 'unsafe', functions.
  541.  --old               Use compatible behavior.
  542.  --old-alter-table   Use old, non-optimized alter table.
  543.  --old-passwords     Use old password encryption method (needed for 4.0 and
  544.                      older clients).
  545.  --old-style-user-limits
  546.                      Enable old-style user limits (before 5.0.3, user
  547.                      resources were counted per each user+host vs. per
  548.                      account).
  549.  --one-thread        (Deprecated): Only use one thread (for debugging under
  550.                      Linux). Use thread-handling=no-threads instead.
  551.  --open_files_limit=#
  552.                      If this is not 0, then mysqld will use this value to
  553.                      reserve file descriptors to use with setrlimit(). If this
  554.                      value is 0 then mysqld will reserve max_connections*5 or
  555.                      max_connections + table_cache*2 (whichever is larger)
  556.                      number of files.
  557.  --optimizer_prune_level[=#]
  558.                      Controls the heuristic(s) applied during query
  559.                      optimization to prune less-promising partial plans from
  560.                      the optimizer search space. Meaning: 0 - do not apply any
  561.                      heuristic, thus perform exhaustive search; 1 - prune
  562.                      plans based on number of retrieved rows.
  563.  --optimizer_search_depth[=#]
  564.                      Maximum depth of search performed by the query optimizer.
  565.                      Values larger than the number of relations in a query
  566.                      result in better query plans, but take longer to compile
  567.                      a query. Smaller values than the number of tables in a
  568.                      relation result in faster optimization, but may produce
  569.                      very bad query plans. If set to 0, the system will
  570.                      automatically pick a reasonable value; if set to
  571.                      MAX_TABLES+2, the optimizer will switch to the original
  572.                      find_best (used for testing/comparison).
  573.  --optimizer_switch=name
  574.                      optimizer_switch=option=val[,option=val...], where
  575.                      option={index_merge, index_merge_union,
  576.                      index_merge_sort_union, index_merge_intersection} and
  577.                      val={on, off, default}.
  578.  --pid-file=name     Pid file used by safe_mysqld.
  579.  --plugin-load=name  Optional semicolon-separated list of plugins to load,
  580.                      where each plugin is identified as name=library, where
  581.                      name is the plugin name and library is the plugin library
  582.                      in plugin_dir.
  583.  --plugin_dir=name   Directory for plugins.
  584.  -P, --port=#        Port number to use for connection or 0 for default to, in
  585.                      order of preference, my.cnf, $MYSQL_TCP_PORT,
  586.                      /etc/services, built-in default (3306).
  587.  --port-open-timeout=#
  588.                      Maximum time in seconds to wait for the port to become
  589.                      free. (Default: No wait).
  590.  --preload_buffer_size=#
  591.                      The size of the buffer that is allocated when preloading
  592.                      indexes.
  593.  --profiling_history_size=#
  594.                      Limit of query profiling memory.
  595.  --query_alloc_block_size=#
  596.                      Allocation block size for query parsing and execution.
  597.  --query_cache_limit=#
  598.                      Don't cache results that are bigger than this.
  599.   --query_cache_min_res_unit=#
  600.                       Minimal size of unit in which space for results is
  601.                       allocated (last unit will be trimmed after writing all
  602.                       result data).
  603.   --query_cache_size=#
  604.                       The memory allocated to store results from old queries.
  605.   --query_cache_type=#
  606.                       0 = OFF = Don't cache or retrieve results. 1 = ON = Cache
  607.                      all results except SELECT SQL_NO_CACHE ... queries. 2 =
  608.                      DEMAND = Cache only SELECT SQL_CACHE ... queries.
  609.  --query_cache_wlock_invalidate
  610.                      Invalidate queries in query cache on LOCK for write.
  611.  --query_prealloc_size=#
  612.                      Persistent buffer for query parsing and execution.
  613.  --range_alloc_block_size=#
  614.                      Allocation block size for storing ranges during
  615.                      optimization.
  616.  --read_buffer_size=#
  617.                      Each thread that does a sequential scan allocates a
  618.                      buffer of this size for each table it scans. If you do
  619.                      many sequential scans, you may want to increase this
  620.                      value.
  621.  --read_only         Make all non-temporary tables read-only, with the
  622.                      exception of replication (slave) threads and users with
  623.                      the SUPER privilege.
  624.  --read_rnd_buffer_size=#
  625.                      When reading rows in sorted order after a sort, the rows
  626.                      are read through this buffer to avoid disk seeks. If not
  627.                      set, then it's set to the value of record_buffer.
  628.   --record_buffer=#   Alias for read_buffer_size. This variable is deprecated
  629.                       and will be removed in a future release.
  630.   --relay-log=name    The location and name to use for relay logs.
  631.   --relay-log-index=name
  632.                       The location and name to use for the file that keeps a
  633.                       list of the last relay logs.
  634.   --relay-log-info-file=name
  635.                       The location and name of the file that remembers where
  636.                       the SQL replication thread is in the relay logs.
  637.   --relay_log_purge   0 = do not purge relay logs. 1 = purge them as soon as
  638.                       they are no more needed.
  639.   --relay_log_space_limit=#
  640.                       Maximum space to use for all relay logs.
  641.   --replicate-do-db=name
  642.                       Tells the slave thread to restrict replication to the
  643.                       specified database. To specify more than one database,
  644.                       use the directive multiple times, once for each database.
  645.                       Note that this will only work if you do not use
  646.                       cross-database queries such as UPDATE some_db.some_table
  647.                       SET foo='bar' while having selected a different or no
  648.                       database. If you need cross database updates to work,
  649.                       make sure you have 3.23.28 or later, and use
  650.                       replicate-wild-do-table=db_name.%.
  651.   --replicate-do-table=name
  652.                       Tells the slave thread to restrict replication to the
  653.                       specified table. To specify more than one table, use the
  654.                       directive multiple times, once for each table. This will
  655.                       work for cross-database updates, in contrast to
  656.                       replicate-do-db.
  657.   --replicate-ignore-db=name
  658.                       Tells the slave thread to not replicate to the specified
  659.                       database. To specify more than one database to ignore,
  660.                       use the directive multiple times, once for each database.
  661.                       This option will not work if you use cross database
  662.                       updates. If you need cross database updates to work, make
  663.                       sure you have 3.23.28 or later, and use
  664.                       replicate-wild-ignore-table=db_name.%.
  665.   --replicate-ignore-table=name
  666.                       Tells the slave thread to not replicate to the specified
  667.                       table. To specify more than one table to ignore, use the
  668.                       directive multiple times, once for each table. This will
  669.                       work for cross-database updates, in contrast to
  670.                       replicate-ignore-db.
  671.   --replicate-rewrite-db=name
  672.                       Updates to a database with a different name than the
  673.                       original. Example:
  674.                       replicate-rewrite-db=master_db_name->slave_db_name.
  675.   --replicate-same-server-id
  676.                       In replication, if set to 1, do not skip events having
  677.                       our server id. Default value is 0 (to break infinite
  678.                       loops in circular replication). Can't be set to 1 if
  679.                      --log-slave-updates is used.
  680.  --replicate-wild-do-table=name
  681.                      Tells the slave thread to restrict replication to the
  682.                      tables that match the specified wildcard pattern. To
  683.                      specify more than one table, use the directive multiple
  684.                      times, once for each table. This will work for
  685.                      cross-database updates. Example:
  686.                      replicate-wild-do-table=foo%.bar% will replicate only
  687.                      updates to tables in all databases that start with foo
  688.                      and whose table names start with bar.
  689.  --replicate-wild-ignore-table=name
  690.                      Tells the slave thread to not replicate to the tables
  691.                      that match the given wildcard pattern. To specify more
  692.                      than one table to ignore, use the directive multiple
  693.                      times, once for each table. This will work for
  694.                      cross-database updates. Example:
  695.                      replicate-wild-ignore-table=foo%.bar% will not do updates
  696.                      to tables in databases that start with foo and whose
  697.                      table names start with bar.
  698.  --report-host=name  Hostname or IP of the slave to be reported to the master
  699.                      during slave registration. Will appear in the output of
  700.                      SHOW SLAVE HOSTS. Leave unset if you do not want the
  701.                      slave to register itself with the master. Note that it is
  702.                      not sufficient for the master to simply read the IP of
  703.                      the slave from the socket once the slave connects. Due to
  704.                      NAT and other routing issues, that IP may not be valid
  705.                      for connecting to the slave from the master or other
  706.                      hosts.
  707.  --report-password=name
  708.                      Undocumented.
  709.  --report-port=#     Port for connecting to slave reported to the master
  710.                      during slave registration. Set it only if the slave is
  711.                      listening on a non-default port or if you have a special
  712.                      tunnel from the master or other clients to the slave. If
  713.                      not sure, leave this option unset.
  714.  --report-user=name  Undocumented.
  715.  --rpl-recovery-rank=#
  716.                      Undocumented.
  717.  --safe-mode         Skip some optimize stages (for testing).
  718.  --safe-show-database
  719.                      Deprecated option; use GRANT SHOW DATABASES instead.
  720.  --safe-user-create  Don't allow new user creation by the user who has no
  721.                       write privileges to the mysql.user table.
  722.   --safemalloc-mem-limit=#
  723.                       Simulate memory shortage when compiled with the
  724.                       --with-debug=full option.
  725.   --secure-auth       Disallow authentication for accounts that have old
  726.                       (pre-4.1) passwords.
  727.   --secure-file-priv=name
  728.                       Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to
  729.                       files within specified directory.
  730.   --server-id=#       Uniquely identifies the server instance in the community
  731.                       of replication partners.
  732.   -O, --set-variable=name
  733.                       Change the value of a variable. Please note that this
  734.                       option is deprecated; you can set variables directly with
  735.                       --variable-name=value.
  736.   --show-slave-auth-info
  737.                       Show user and password in SHOW SLAVE HOSTS on this
  738.                       master.
  739.   --skip-grant-tables Start without grant tables. This gives all users FULL
  740.                       ACCESS to all tables.
  741.   --skip-host-cache   Don't cache host names.
  742.  --skip-locking      Deprecated option, use --skip-external-locking instead.
  743.  --skip-name-resolve Don't resolve hostnames. All hostnames are IP's or
  744.                      'localhost'.
  745.  --skip-networking   Don't allow connection with TCP/IP.
  746.   --skip-new          Don't use new, possibly wrong routines.
  747.  --skip-show-database
  748.                      Don't allow 'SHOW DATABASE' commands.
  749.   --skip-slave-start  If set, slave is not autostarted.
  750.   --skip-stack-trace  Don't print a stack trace on failure.
  751.  --skip-symlink      Don't allow symlinking of tables. Deprecated option. Use
  752.                       --skip-symbolic-links instead.
  753.   --skip-thread-priority
  754.                       Don't give threads different priorities. Deprecated
  755.                      option.
  756.  --slave-exec-mode=name
  757.                      Modes for how replication events should be executed.
  758.                      Legal values are STRICT (default) and IDEMPOTENT. In
  759.                      IDEMPOTENT mode, replication will not stop for operations
  760.                      that are idempotent. In STRICT mode, replication will
  761.                      stop on any unexpected difference between the master and
  762.                      the slave.
  763.  --slave-load-tmpdir=name
  764.                      The location where the slave should put its temporary
  765.                      files when replicating a LOAD DATA INFILE command.
  766.  --slave-skip-errors=name
  767.                      Tells the slave thread to continue replication when a
  768.                      query event returns an error from the provided list.
  769.  --slave_compressed_protocol
  770.                      Use compression on master/slave protocol.
  771.  --slave_net_timeout=#
  772.                      Number of seconds to wait for more data from a
  773.                      master/slave connection before aborting the read.
  774.  --slave_transaction_retries=#
  775.                      Number of times the slave SQL thread will retry a
  776.                      transaction in case it failed with a deadlock or elapsed
  777.                      lock wait timeout, before giving up and stopping.
  778.  --slow-query-log    Enable/disable slow query log.
  779.  --slow_launch_time=#
  780.                      If creating the thread takes longer than this value (in
  781.                      seconds), the Slow_launch_threads counter will be
  782.                      incremented.
  783.  --slow_query_log_file=name
  784.                      Log slow queries to given log file. Defaults logging to
  785.                      hostname-slow.log. Must be enabled to activate other slow
  786.                      log options.
  787.  --socket=name       Socket file to use for connection.
  788.  --sort_buffer_size=#
  789.                      Each thread that needs to do a sort allocates a buffer of
  790.                      this size.
  791.  --sporadic-binlog-dump-fail
  792.                      Option used by mysql-test for debugging and testing of
  793.                      replication.
  794.  --sql-bin-update-same=#
  795.                      The update log is deprecated since version 5.0, is
  796.                      replaced by the binary log and this option does nothing
  797.                      anymore.
  798.  --sql-mode=name     Syntax: sql-mode=option[,option[,option...]] where option
  799.                      can be one of: REAL_AS_FLOAT, PIPES_AS_CONCAT,
  800.                      ANSI_QUOTES, IGNORE_SPACE, ONLY_FULL_GROUP_BY,
  801.                      NO_UNSIGNED_SUBTRACTION.
  802.  --ssl               Enable SSL for connection (automatically enabled with
  803.                      other flags).Disable with --skip-ssl.
  804.  --ssl-ca=name       CA file in PEM format (check OpenSSL docs, implies
  805.                      --ssl).
  806.  --ssl-capath=name   CA directory (check OpenSSL docs, implies --ssl).
  807.  --ssl-cert=name     X509 cert in PEM format (implies --ssl).
  808.  --ssl-cipher=name   SSL cipher to use (implies --ssl).
  809.  --ssl-key=name      X509 key in PEM format (implies --ssl).
  810.  -s, --symbolic-links
  811.                      Enable symbolic link support.
  812.  --sync-binlog=#     Synchronously flush binary log to disk after every #th
  813.                      event. Use 0 (default) to disable synchronous flushing.
  814.  --sync-frm          Sync .frm to disk on create. Enabled by default.
  815.  --sysdate-is-now    Non-default option to alias SYSDATE() to NOW() to make it
  816.                      safe-replicable. Since 5.0, SYSDATE() returns a `dynamic'
  817.                       value different for different invocations, even within
  818.                       the same statement.
  819.   --table_cache=#     Deprecated; use --table_open_cache instead.
  820.   --table_definition_cache=#
  821.                       The number of cached table definitions.
  822.   --table_lock_wait_timeout=#
  823.                       Timeout in seconds to wait for a table level lock before
  824.                       returning an error. Used only if the connection has
  825.                       active cursors.
  826.   --table_open_cache=#
  827.                       The number of cached open tables.
  828.   --tc-heuristic-recover=name
  829.                       Decision to use in heuristic recover process. Possible
  830.                       values are COMMIT or ROLLBACK.
  831.   --temp-pool         Using this option will cause most temporary files created
  832.                       to use a small set of names, rather than a unique name
  833.                       for each new file.
  834.   --thread_cache_size=#
  835.                       How many threads we should keep in a cache for reuse.
  836.   --thread_concurrency=#
  837.                       Permits the application to give the threads system a hint
  838.                       for the desired number of threads that should be run at
  839.                       the same time.
  840.   --thread_handling=name
  841.                       Define threads usage for handling queries:
  842.                       one-thread-per-connection or no-threads.
  843.   --thread_stack=#    The stack size for each thread.
  844.   --timed_mutexes     Specify whether to time mutexes (only InnoDB mutexes are
  845.                       currently supported).
  846.   --time_format=name  The TIME format (for future).
  847.   -t, --tmpdir=name   Path for temporary files. Several paths may be specified,
  848.                       separated by a colon (:), in this case they are used in a
  849.                       round-robin fashion.
  850.   --tmp_table_size=#  If an internal in-memory temporary table exceeds this
  851.                       size, MySQL will automatically convert it to an on-disk
  852.                       MyISAM table.
  853.   --transaction-isolation=name
  854.                       Default transaction isolation level.
  855.   --transaction_alloc_block_size=#
  856.                       Allocation block size for transactions to be stored in
  857.                       binary log.
  858.   --transaction_prealloc_size=#
  859.                       Persistent buffer for transactions to be stored in binary
  860.                       log.
  861.   --updatable_views_with_limit=#
  862.                       1 = YES = Don't issue an error message (warning only) if
  863.                      a VIEW without presence of a key of the underlying table
  864.                      is used in queries with a LIMIT clause for updating. 0 =
  865.                      NO = Prohibit update of a VIEW, which does not contain a
  866.                      key of the underlying table and the query uses a LIMIT
  867.                      clause (usually get from GUI tools).
  868.  --use-symbolic-links
  869.                      Enable symbolic link support. Deprecated option; use
  870.                      --symbolic-links instead.
  871.  -u, --user=name     Run mysqld daemon as user.
  872.  -v, --verbose       Used with --help option for detailed help.
  873.  -V, --version       Output version information and exit.
  874.  --wait_timeout=#    The number of seconds the server waits for activity on a
  875.                      connection before closing it.
  876.  --warnings[=#]      Deprecated; use --log-warnings instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement