以下内容参考官方文档:http://dev.mysql.com/doc/refman/5.7/en/windows-start-command-line.html
解压缩zip到D:mysql-5.7.13-winx64,建立data目录D:mysql-5.7.13-winx64data,
在D:mysql-5.7.13-winx64创建配置文件my.ini,详见:
[mysqld] # set basedir to your installation path basedir=D:mysql-5.7.13-winx64 # set datadir to the location of your data directory datadir=D:mysql-5.7.13-winx64data
初始化数据目录:
binmysqld --initialize --产生随机密码
binmysqld --initialize-insecure --密码为空
连接服务端
D:mysql-5.7.13-winx64in>mysql -u root -p Enter password: ********* Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 18 Server version: 5.7.13 MySQL Community Server (GPL) Copyright (c) 2000, 2016, 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. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
修改用户密码
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
方法一: (适用于管理员或者有全局权限的用户重设其它用户的密码) 进入命令行模式 mysql -u root -p mysql>use mysql; mysql> UPDATE user SET password=PASSWORD("new password") WHERE user='username'; mysql> FLUSH PRIVILEGES; mysql> quit; 方法二: mysql -u root -p mysql>use mysql; mysql> SET PASSWORD FOR username=PASSWORD('new password'); mysql> QUIT
update mysql.user set authentication_string=password('root') where user='root' and Host = 'localhost';
以控制台方式启动MySQL服务
mysqld --console
将MySQL安装成Windows服务
mysqld --install
mysqld命令参数详解
1 mysqld Ver 5.7.13 for Win64 on x86_64 (MySQL Community Server (GPL)) 2 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. 3 4 Oracle is a registered trademark of Oracle Corporation and/or its 5 affiliates. Other names may be trademarks of their respective 6 owners. 7 8 Starts the MySQL database server. 9 10 Usage: mysqld [OPTIONS] 11 NT and Win32 specific options: 12 --install Install the default service (NT). 13 --install-manual Install the default service started manually (NT). 14 --install service_name Install an optional service (NT). 15 --install-manual service_name Install an optional service started manually (NT). 16 --remove Remove the default service from the service list (NT). 17 --remove service_name Remove the service_name from the service list (NT). 18 --enable-named-pipe Only to be used for the default server (NT). 19 --standalone Dummy option to start as a standalone server (NT). 20 21 22 Default options are read from the following files in the given order: 23 C:Windowsmy.ini C:Windowsmy.cnf C:my.ini C:my.cnf F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64my.ini F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64my.cnf 24 The following groups are read: mysqld server mysqld-5.7 25 The following options may be given as the first argument: 26 --print-defaults Print the program argument list and exit. 27 --no-defaults Don't read default options from any option file, 28 except for login file. 29 --defaults-file=# Only read default options from the given file #. 30 --defaults-extra-file=# Read this file after the global files are read. 31 --defaults-group-suffix=# 32 Also read groups with concat(group, suffix) 33 --login-path=# Read this path from the login file. 34 35 --abort-slave-event-count=# 36 Option used by mysql-test for debugging and testing of 37 replication. 38 --allow-suspicious-udfs 39 Allows use of UDFs consisting of only one symbol xxx() 40 without corresponding xxx_init() or xxx_deinit(). That 41 also means that one can load any function from any 42 library, for example exit() from libc.so 43 -a, --ansi Use ANSI SQL syntax instead of MySQL syntax. This mode 44 will also set transaction isolation level 'serializable'. 45 --archive[=name] Enable or disable ARCHIVE plugin. Possible values are ON, 46 OFF, FORCE (don't start if the plugin fails to load). 47 --auto-increment-increment[=#] 48 Auto-increment columns are incremented by this 49 --auto-increment-offset[=#] 50 Offset added to Auto-increment columns. Used when 51 auto-increment-increment != 1 52 --autocommit Set default value for autocommit (0 or 1) 53 (Defaults to on; use --skip-autocommit to disable.) 54 --automatic-sp-privileges 55 Creating and dropping stored procedures alters ACLs 56 (Defaults to on; use --skip-automatic-sp-privileges to disable.) 57 --avoid-temporal-upgrade 58 When this option is enabled, the pre-5.6.4 temporal types 59 are not upgraded to the new format for ALTER TABLE 60 requests ADD/CHANGE/MODIFY COLUMN, ADD INDEX or FORCE 61 operation. This variable is deprecated and will be 62 removed in a future release. 63 --back-log=# The number of outstanding connection requests MySQL can 64 have. This comes into play when the main MySQL thread 65 gets very many connection requests in a very short time 66 -b, --basedir=name Path to installation directory. All paths are usually 67 resolved relative to this 68 --big-tables Allow big result sets by saving all temporary sets on 69 file (Solves most 'table full' errors) 70 --bind-address=name IP address to bind to. 71 --binlog-cache-size=# 72 The size of the transactional cache for updates to 73 transactional engines for the binary log. If you often 74 use transactions containing many statements, you can 75 increase this to get more performance 76 --binlog-checksum=name 77 Type of BINLOG_CHECKSUM_ALG. Include checksum for log 78 events in the binary log. Possible values are NONE and 79 CRC32; default is CRC32. 80 --binlog-direct-non-transactional-updates 81 Causes updates to non-transactional engines using 82 statement format to be written directly to binary log. 83 Before using this option make sure that there are no 84 dependencies between transactional and non-transactional 85 tables such as in the statement INSERT INTO t_myisam 86 SELECT * FROM t_innodb; otherwise, slaves may diverge 87 from the master. 88 --binlog-do-db=name Tells the master it should log updates for the specified 89 database, and exclude all others not explicitly 90 mentioned. 91 --binlog-error-action=name 92 When statements cannot be written to the binary log due 93 to a fatal error, the server can either ignore the error 94 and let the master continue, or abort. 95 --binlog-format=name 96 What form of binary logging the master will use: either 97 ROW for row-based binary logging, STATEMENT for 98 statement-based binary logging, or MIXED. MIXED is 99 statement-based binary logging except for those 100 statements where only row-based is correct: those which 101 involve user-defined functions (i.e. UDFs) or the UUID() 102 function; for those, row-based binary logging is 103 automatically used. If NDBCLUSTER is enabled and 104 binlog-format is MIXED, the format switches to row-based 105 and back implicitly per each query accessing an 106 NDBCLUSTER table 107 --binlog-group-commit-sync-delay=# 108 The number of microseconds the server waits for the 109 binary log group commit sync queue to fill before 110 continuing. Default: 0. Min: 0. Max: 1000000. 111 --binlog-group-commit-sync-no-delay-count=# 112 If there are this many transactions in the commit sync 113 queue and the server is waiting for more transactions to 114 be enqueued (as set using 115 --binlog-group-commit-sync-delay), the commit procedure 116 resumes. 117 --binlog-gtid-simple-recovery 118 If this option is enabled, the server does not open more 119 than two binary logs when initializing GTID_PURGED and 120 GTID_EXECUTED, either during server restart or when 121 binary logs are being purged. Enabling this option is 122 useful when the server has already generated many binary 123 logs without GTID events (e.g., having GTID_MODE = OFF). 124 Note: If this option is enabled, GLOBAL.GTID_EXECUTED and 125 GLOBAL.GTID_PURGED may be initialized wrongly in two 126 cases: (1) All binary logs were generated by MySQL 5.7.5 127 or older, and GTID_MODE was ON for some binary logs but 128 OFF for the newest binary log. (2) The oldest existing 129 binary log was generated by MySQL 5.7.5 or older, and SET 130 GTID_PURGED was issued after the oldest binary log was 131 generated. If a wrong set is computed in one of case (1) 132 or case (2), it will remain wrong even if the server is 133 later restarted with this option disabled. 134 (Defaults to on; use --skip-binlog-gtid-simple-recovery to disable.) 135 --binlog-ignore-db=name 136 Tells the master that updates to the given database 137 should not be logged to the binary log. 138 --binlog-max-flush-queue-time=# 139 The maximum time that the binary log group commit will 140 keep reading transactions before it flush the 141 transactions to the binary log (and optionally sync, 142 depending on the value of sync_binlog). 143 --binlog-order-commits 144 Issue internal commit calls in the same order as 145 transactions are written to the binary log. Default is to 146 order commits. 147 (Defaults to on; use --skip-binlog-order-commits to disable.) 148 --binlog-row-event-max-size=# 149 The maximum size of a row-based binary log event in 150 bytes. Rows will be grouped into events smaller than this 151 size if possible. The value has to be a multiple of 256. 152 --binlog-row-image=name 153 Controls whether rows should be logged in 'FULL', 154 'NOBLOB' or 'MINIMAL' formats. 'FULL', means that all 155 columns in the before and after image are logged. 156 'NOBLOB', means that mysqld avoids logging blob columns 157 whenever possible (eg, blob column was not changed or is 158 not part of primary key). 'MINIMAL', means that a PK 159 equivalent (PK columns or full row if there is no PK in 160 the table) is logged in the before image, and only 161 changed columns are logged in the after image. (Default: 162 FULL). 163 --binlog-rows-query-log-events 164 Allow writing of Rows_query_log events into binary log. 165 --binlog-stmt-cache-size=# 166 The size of the statement cache for updates to 167 non-transactional engines for the binary log. If you 168 often use statements updating a great number of rows, you 169 can increase this to get more performance 170 --blackhole[=name] Enable or disable BLACKHOLE plugin. Possible values are 171 ON, OFF, FORCE (don't start if the plugin fails to load). 172 --block-encryption-mode=name 173 mode for AES_ENCRYPT/AES_DECRYPT 174 --bootstrap Used by mysql installation scripts. 175 --bulk-insert-buffer-size=# 176 Size of tree cache used in bulk insert optimisation. Note 177 that this is a limit per thread! 178 --character-set-client-handshake 179 Don't ignore client side character set value sent during 180 handshake. 181 (Defaults to on; use --skip-character-set-client-handshake to disable.) 182 --character-set-filesystem=name 183 Set the filesystem character set. 184 -C, --character-set-server=name 185 Set the default character set. 186 --character-sets-dir=name 187 Directory where character sets are 188 --check-proxy-users If set to FALSE (the default), then proxy user identity 189 will not be mapped for authentication plugins which 190 support mapping from grant tables. When set to TRUE, 191 users associated with authentication plugins which signal 192 proxy user mapping should be done according to GRANT 193 PROXY privilege definition. 194 -r, --chroot=name Chroot mysqld daemon during startup. 195 --collation-server=name 196 Set the default collation. 197 --completion-type=name 198 The transaction completion type, one of NO_CHAIN, CHAIN, 199 RELEASE 200 --concurrent-insert[=name] 201 Use concurrent insert with MyISAM. Possible values are 202 NEVER, AUTO, ALWAYS 203 --connect-timeout=# The number of seconds the mysqld server is waiting for a 204 connect packet before responding with 'Bad handshake' 205 --console Write error output on screen; don't remove the console 206 window on windows. 207 --core-file Write core on errors. 208 -h, --datadir=name Path to the database root directory 209 --date-format=name The DATE format (ignored) 210 --datetime-format=name 211 The DATETIME format (ignored) 212 --default-authentication-plugin=name 213 The default authentication plugin used by the server to 214 hash the password. 215 --default-password-lifetime=# 216 The number of days after which the password will expire. 217 --default-storage-engine=name 218 The default storage engine for new tables 219 --default-time-zone=name 220 Set the default time zone. 221 --default-tmp-storage-engine=name 222 The default storage engine for new explict temporary 223 tables 224 --default-week-format=# 225 The default week format used by WEEK() functions 226 --delay-key-write[=name] 227 Type of DELAY_KEY_WRITE 228 --delayed-insert-limit=# 229 After inserting delayed_insert_limit rows, the INSERT 230 DELAYED handler will check if there are any SELECT 231 statements pending. If so, it allows these to execute 232 before continuing. This variable is deprecated along with 233 INSERT DELAYED. 234 --delayed-insert-timeout=# 235 How long a INSERT DELAYED thread should wait for INSERT 236 statements before terminating. This variable is 237 deprecated along with INSERT DELAYED. 238 --delayed-queue-size=# 239 What size queue (in rows) should be allocated for 240 handling INSERT DELAYED. If the queue becomes full, any 241 client that does INSERT DELAYED will wait until there is 242 room in the queue again. This variable is deprecated 243 along with INSERT DELAYED. 244 --des-key-file=name Load keys for des_encrypt() and des_encrypt from given 245 file. 246 --disabled-storage-engines=name 247 Limit CREATE TABLE for the storage engines listed 248 --disconnect-on-expired-password 249 Give clients that don't signal password expiration 250 support execution time error(s) instead of connection 251 error 252 (Defaults to on; use --skip-disconnect-on-expired-password to disable.) 253 --disconnect-slave-event-count=# 254 Option used by mysql-test for debugging and testing of 255 replication. 256 --div-precision-increment=# 257 Precision of the result of '/' operator will be increased 258 on that value 259 --early-plugin-load=name 260 Optional semicolon-separated list of plugins to load 261 before storage engine initialization, where each plugin 262 is identified as name=library, where name is the plugin 263 name and library is the plugin library in plugin_dir. 264 --end-markers-in-json 265 In JSON output ("EXPLAIN FORMAT=JSON" and optimizer 266 trace), if variable is set to 1, repeats the structure's 267 key (if it has one) near the closing bracket 268 --enforce-gtid-consistency[=name] 269 Prevents execution of statements that would be impossible 270 to log in a transactionally safe manner. Currently, the 271 disallowed statements include CREATE TEMPORARY TABLE 272 inside transactions, all updates to non-transactional 273 tables, and CREATE TABLE ... SELECT. 274 --eq-range-index-dive-limit=# 275 The optimizer will use existing index statistics instead 276 of doing index dives for equality ranges if the number of 277 equality ranges for the index is larger than or equal to 278 this number. If set to 0, index dives are always used. 279 --event-scheduler[=name] 280 Enable the event scheduler. Possible values are ON, OFF, 281 and DISABLED (keep the event scheduler completely 282 deactivated, it cannot be activated run-time) 283 -T, --exit-info[=#] Used for debugging. Use at your own risk. 284 --expire-logs-days=# 285 If non-zero, binary logs will be purged after 286 expire_logs_days days; possible purges happen at startup 287 and at binary log rotation 288 --explicit-defaults-for-timestamp 289 This option causes CREATE TABLE to create all TIMESTAMP 290 columns as NULL with DEFAULT NULL attribute, Without this 291 option, TIMESTAMP columns are NOT NULL and have implicit 292 DEFAULT clauses. The old behavior is deprecated. The 293 variable can only be set by users having the SUPER 294 privilege. 295 --external-locking Use system (external) locking (disabled by default). 296 With this option enabled you can run myisamchk to test 297 (not repair) tables while the MySQL server is running. 298 Disable with --skip-external-locking. 299 --federated[=name] Enable or disable FEDERATED plugin. Possible values are 300 ON, OFF, FORCE (don't start if the plugin fails to load). 301 --flush Flush MyISAM tables to disk between SQL commands 302 --flush-time=# A dedicated thread is created to flush all tables at the 303 given interval 304 --ft-boolean-syntax=name 305 List of operators for MATCH ... AGAINST ( ... IN BOOLEAN 306 MODE) 307 --ft-max-word-len=# The maximum length of the word to be included in a 308 FULLTEXT index. Note: FULLTEXT indexes must be rebuilt 309 after changing this variable 310 --ft-min-word-len=# The minimum length of the word to be included in a 311 FULLTEXT index. Note: FULLTEXT indexes must be rebuilt 312 after changing this variable 313 --ft-query-expansion-limit=# 314 Number of best matches to use for query expansion 315 --ft-stopword-file=name 316 Use stopwords from this file instead of built-in list 317 --gdb Set up signals usable for debugging. 318 --general-log Log connections and queries to a table or log file. 319 Defaults to logging to a file hostname.log, or if 320 --log-output=TABLE is used, to a table mysql.general_log. 321 --general-log-file=name 322 Log connections and queries to given file 323 --group-concat-max-len=# 324 The maximum length of the result of function 325 GROUP_CONCAT() 326 --gtid-executed-compression-period[=#] 327 When binlog is disabled, a background thread wakes up to 328 compress the gtid_executed table every 329 gtid_executed_compression_period transactions, as a 330 special case, if variable is 0, the thread never wakes up 331 to compress the gtid_executed table. 332 --gtid-mode=name Controls whether Global Transaction Identifiers (GTIDs) 333 are enabled. Can be OFF, OFF_PERMISSIVE, ON_PERMISSIVE, 334 or ON. OFF means that no transaction has a GTID. 335 OFF_PERMISSIVE means that new transactions (committed in 336 a client session using GTID_NEXT='AUTOMATIC') are not 337 assigned any GTID, and replicated transactions are 338 allowed to have or not have a GTID. ON_PERMISSIVE means 339 that new transactions are assigned a GTID, and replicated 340 transactions are allowed to have or not have a GTID. ON 341 means that all transactions have a GTID. ON is required 342 on a master before any slave can use 343 MASTER_AUTO_POSITION=1. To safely switch from OFF to ON, 344 first set all servers to OFF_PERMISSIVE, then set all 345 servers to ON_PERMISSIVE, then wait for all transactions 346 without a GTID to be replicated and executed on all 347 servers, and finally set all servers to GTID_MODE = ON. 348 -?, --help Display this help and exit. 349 --host-cache-size=# How many host names should be cached to avoid resolving. 350 --ignore-builtin-innodb 351 IGNORED. This option will be removed in future releases. 352 Disable initialization of builtin InnoDB plugin 353 --ignore-db-dir=name 354 Specifies a directory to add to the ignore list when 355 collecting database names from the datadir. Put a blank 356 argument to reset the list accumulated so far. 357 --init-connect=name Command(s) that are executed for each new connection 358 --init-file=name Read SQL commands from this file at startup 359 --init-slave=name Command(s) that are executed by a slave server each time 360 the SQL thread starts 361 --initialize Create the default database and exit. Create a super user 362 with a random expired password and store it into the log. 363 --initialize-insecure 364 Create the default database and exit. Create a super user 365 with empty password. 366 --innodb Deprecated option. Provided for backward compatibility 367 only. The option has no effect on the server behaviour. 368 InnoDB is always enabled. The option will be removed in a 369 future release. 370 --innodb-adaptive-flushing 371 Attempt flushing dirty pages to avoid IO bursts at 372 checkpoints. 373 (Defaults to on; use --skip-innodb-adaptive-flushing to disable.) 374 --innodb-adaptive-flushing-lwm=# 375 Percentage of log capacity below which no adaptive 376 flushing happens. 377 --innodb-adaptive-hash-index 378 Enable InnoDB adaptive hash index (enabled by default). 379 Disable with --skip-innodb-adaptive-hash-index. 380 (Defaults to on; use --skip-innodb-adaptive-hash-index to disable.) 381 --innodb-adaptive-hash-index-parts[=#] 382 Number of InnoDB Adapative Hash Index Partitions. 383 (default = 8). 384 --innodb-adaptive-max-sleep-delay=# 385 The upper limit of the sleep delay in usec. Value of 0 386 disables it. 387 --innodb-api-bk-commit-interval[=#] 388 Background commit interval in seconds 389 --innodb-api-disable-rowlock 390 Disable row lock when direct access InnoDB through InnoDB 391 APIs 392 --innodb-api-enable-binlog 393 Enable binlog for applications direct access InnoDB 394 through InnoDB APIs 395 --innodb-api-enable-mdl 396 Enable MDL for applications direct access InnoDB through 397 InnoDB APIs 398 --innodb-api-trx-level[=#] 399 InnoDB API transaction isolation level 400 --innodb-autoextend-increment=# 401 Data file autoextend increment in megabytes 402 --innodb-autoinc-lock-mode=# 403 The AUTOINC lock modes supported by InnoDB: 0 => Old 404 style AUTOINC locking (for backward compatibility); 1 => 405 New style AUTOINC locking; 2 => No AUTOINC locking 406 (unsafe for SBR) 407 --innodb-buffer-pool-chunk-size=# 408 Size of a single memory chunk within each buffer pool 409 instance for resizing buffer pool. Online buffer pool 410 resizing happens at this granularity. 0 means disable 411 resizing buffer pool. 412 --innodb-buffer-pool-dump-at-shutdown 413 Dump the buffer pool into a file named 414 @@innodb_buffer_pool_filename 415 (Defaults to on; use --skip-innodb-buffer-pool-dump-at-shutdown to disable.) 416 --innodb-buffer-pool-dump-now 417 Trigger an immediate dump of the buffer pool into a file 418 named @@innodb_buffer_pool_filename 419 --innodb-buffer-pool-dump-pct=# 420 Dump only the hottest N% of each buffer pool, defaults to 421 25 422 --innodb-buffer-pool-filename=name 423 Filename to/from which to dump/load the InnoDB buffer 424 pool 425 --innodb-buffer-pool-instances=# 426 Number of buffer pool instances, set to higher value on 427 high-end machines to increase scalability 428 --innodb-buffer-pool-load-abort 429 Abort a currently running load of the buffer pool 430 --innodb-buffer-pool-load-at-startup 431 Load the buffer pool from a file named 432 @@innodb_buffer_pool_filename 433 (Defaults to on; use --skip-innodb-buffer-pool-load-at-startup to disable.) 434 --innodb-buffer-pool-load-now 435 Trigger an immediate load of the buffer pool from a file 436 named @@innodb_buffer_pool_filename 437 --innodb-buffer-pool-size=# 438 The size of the memory buffer InnoDB uses to cache data 439 and indexes of its tables. 440 --innodb-change-buffer-max-size=# 441 Maximum on-disk size of change buffer in terms of 442 percentage of the buffer pool. 443 --innodb-change-buffering=name 444 Buffer changes to reduce random access: OFF, ON, 445 inserting, deleting, changing, or purging. 446 --innodb-checksum-algorithm=name 447 The algorithm InnoDB uses for page checksumming. Possible 448 values are CRC32 (hardware accelerated if the CPU 449 supports it) write crc32, allow any of the other 450 checksums to match when reading; STRICT_CRC32 write 451 crc32, do not allow other algorithms to match when 452 reading; INNODB write a software calculated checksum, 453 allow any other checksums to match when reading; 454 STRICT_INNODB write a software calculated checksum, do 455 not allow other algorithms to match when reading; NONE 456 write a constant magic number, do not do any checksum 457 verification when reading (same as innodb_checksums=OFF); 458 STRICT_NONE write a constant magic number, do not allow 459 values other than that magic number when reading; Files 460 updated when this option is set to crc32 or strict_crc32 461 will not be readable by MySQL versions older than 5.6.3 462 --innodb-checksums DEPRECATED. Use innodb_checksum_algorithm=NONE instead of 463 setting this to OFF. Enable InnoDB checksums validation 464 (enabled by default). Disable with 465 --skip-innodb-checksums. 466 (Defaults to on; use --skip-innodb-checksums to disable.) 467 --innodb-cmp-per-index-enabled 468 Enable INFORMATION_SCHEMA.innodb_cmp_per_index, may have 469 negative impact on performance (off by default) 470 --innodb-commit-concurrency=# 471 Helps in performance tuning in heavily concurrent 472 environments. 473 --innodb-compression-failure-threshold-pct[=#] 474 If the compression failure rate of a table is greater 475 than this number more padding is added to the pages to 476 reduce the failures. A value of zero implies no padding 477 --innodb-compression-level=# 478 Compression level used for compressed row format. 0 is 479 no compression, 1 is fastest, 9 is best compression and 480 default is 6. 481 --innodb-compression-pad-pct-max[=#] 482 Percentage of empty space on a data page that can be 483 reserved to make the page compressible. 484 --innodb-concurrency-tickets=# 485 Number of times a thread is allowed to enter InnoDB 486 within the same SQL query after it has once got the 487 ticket 488 --innodb-data-file-path=name 489 Path to individual files and their sizes. 490 --innodb-data-home-dir=name 491 The common part for InnoDB table spaces. 492 --innodb-default-row-format=name 493 The default ROW FORMAT for all innodb tables created 494 without explicit ROW_FORMAT. Possible values are 495 REDUNDANT, COMPACT, and DYNAMIC. The ROW_FORMAT value 496 COMPRESSED is not allowed 497 --innodb-disable-sort-file-cache 498 Whether to disable OS system file cache for sort I/O 499 --innodb-doublewrite 500 Enable InnoDB doublewrite buffer (enabled by default). 501 Disable with --skip-innodb-doublewrite. 502 (Defaults to on; use --skip-innodb-doublewrite to disable.) 503 --innodb-fast-shutdown[=#] 504 Speeds up the shutdown process of the InnoDB storage 505 engine. Possible values are 0, 1 (faster) or 2 (fastest - 506 crash-like). 507 --innodb-file-format=name 508 File format to use for new tables in .ibd files. 509 --innodb-file-format-check 510 Whether to perform system file format check. 511 (Defaults to on; use --skip-innodb-file-format-check to disable.) 512 --innodb-file-format-max[=name] 513 The highest file format in the tablespace. 514 --innodb-file-per-table 515 Stores each InnoDB table to an .ibd file in the database 516 dir. 517 (Defaults to on; use --skip-innodb-file-per-table to disable.) 518 --innodb-fill-factor=# 519 Percentage of B-tree page filled during bulk insert 520 --innodb-flush-log-at-timeout[=#] 521 Write and flush logs every (n) second. 522 --innodb-flush-log-at-trx-commit[=#] 523 Set to 0 (write and flush once per second), 1 (write and 524 flush at each commit) or 2 (write at commit, flush once 525 per second). 526 --innodb-flush-method=name 527 With which method to flush data. 528 --innodb-flush-neighbors[=#] 529 Set to 0 (don't flush neighbors from buffer pool), 1 530 (flush contiguous neighbors from buffer pool) or 2 (flush 531 neighbors from buffer pool), when flushing a block 532 --innodb-flush-sync Allow IO bursts at the checkpoints ignoring io_capacity 533 setting. 534 (Defaults to on; use --skip-innodb-flush-sync to disable.) 535 --innodb-flushing-avg-loops=# 536 Number of iterations over which the background flushing 537 is averaged. 538 --innodb-force-load-corrupted 539 Force InnoDB to load metadata of corrupted table. 540 --innodb-force-recovery=# 541 Helps to save your data in case the disk image of the 542 database becomes corrupt. 543 --innodb-ft-aux-table=name 544 FTS internal auxiliary table to be checked 545 --innodb-ft-cache-size=# 546 InnoDB Fulltext search cache size in bytes 547 --innodb-ft-enable-diag-print 548 Whether to enable additional FTS diagnostic printout 549 --innodb-ft-enable-stopword 550 Create FTS index with stopword. 551 (Defaults to on; use --skip-innodb-ft-enable-stopword to disable.) 552 --innodb-ft-max-token-size=# 553 InnoDB Fulltext search maximum token size in characters 554 --innodb-ft-min-token-size=# 555 InnoDB Fulltext search minimum token size in characters 556 --innodb-ft-num-word-optimize[=#] 557 InnoDB Fulltext search number of words to optimize for 558 each optimize table call 559 --innodb-ft-result-cache-limit=# 560 InnoDB Fulltext search query result cache limit in bytes 561 --innodb-ft-server-stopword-table[=name] 562 The user supplied stopword table name. 563 --innodb-ft-sort-pll-degree=# 564 InnoDB Fulltext search parallel sort degree, will round 565 up to nearest power of 2 number 566 --innodb-ft-total-cache-size=# 567 Total memory allocated for InnoDB Fulltext Search cache 568 --innodb-ft-user-stopword-table[=name] 569 User supplied stopword table name, effective in the 570 session level. 571 --innodb-io-capacity=# 572 Number of IOPs the server can do. Tunes the background IO 573 rate 574 --innodb-io-capacity-max=# 575 Limit to which innodb_io_capacity can be inflated. 576 --innodb-large-prefix 577 Support large index prefix length of 578 REC_VERSION_56_MAX_INDEX_COL_LEN (3072) bytes. 579 (Defaults to on; use --skip-innodb-large-prefix to disable.) 580 --innodb-lock-wait-timeout=# 581 Timeout in seconds an InnoDB transaction may wait for a 582 lock before being rolled back. Values above 100000000 583 disable the timeout. 584 --innodb-locks-unsafe-for-binlog 585 DEPRECATED. This option may be removed in future 586 releases. Please use READ COMMITTED transaction isolation 587 level instead. Force InnoDB to not use next-key locking, 588 to use only row-level locking. 589 --innodb-log-buffer-size=# 590 The size of the buffer which InnoDB uses to write log to 591 the log files on disk. 592 --innodb-log-checksums 593 Whether to compute and require checksums for InnoDB redo 594 log blocks 595 (Defaults to on; use --skip-innodb-log-checksums to disable.) 596 --innodb-log-compressed-pages 597 Enables/disables the logging of entire compressed page 598 images. InnoDB logs the compressed pages to prevent 599 corruption if the zlib compression algorithm changes. 600 When turned OFF, InnoDB will assume that the zlib 601 compression algorithm doesn't change. 602 (Defaults to on; use --skip-innodb-log-compressed-pages to disable.) 603 --innodb-log-file-size=# 604 Size of each log file in a log group. 605 --innodb-log-files-in-group=# 606 Number of log files in the log group. InnoDB writes to 607 the files in a circular fashion. 608 --innodb-log-group-home-dir=name 609 Path to InnoDB log files. 610 --innodb-log-write-ahead-size=# 611 Redo log write ahead unit size to avoid read-on-write, it 612 should match the OS cache block IO size 613 --innodb-lru-scan-depth=# 614 How deep to scan LRU to keep it clean 615 --innodb-max-dirty-pages-pct=# 616 Percentage of dirty pages allowed in bufferpool. 617 --innodb-max-dirty-pages-pct-lwm=# 618 Percentage of dirty pages at which flushing kicks in. 619 --innodb-max-purge-lag=# 620 Desired maximum length of the purge queue (0 = no limit) 621 --innodb-max-purge-lag-delay=# 622 Maximum delay of user threads in micro-seconds 623 --innodb-max-undo-log-size[=#] 624 Maximum size of UNDO tablespace in MB (If UNDO tablespace 625 grows beyond this size it will be truncated in due 626 course). 627 --innodb-monitor-disable=name 628 Turn off a monitor counter 629 --innodb-monitor-enable=name 630 Turn on a monitor counter 631 --innodb-monitor-reset=name 632 Reset a monitor counter 633 --innodb-monitor-reset-all=name 634 Reset all values for a monitor counter 635 --innodb-old-blocks-pct=# 636 Percentage of the buffer pool to reserve for 'old' 637 blocks. 638 --innodb-old-blocks-time=# 639 Move blocks to the 'new' end of the buffer pool if the 640 first access was at least this many milliseconds ago. The 641 timeout is disabled if 0. 642 --innodb-online-alter-log-max-size=# 643 Maximum modification log file size for online index 644 creation 645 --innodb-open-files=# 646 How many files at the maximum InnoDB keeps open at the 647 same time. 648 --innodb-optimize-fulltext-only 649 Only optimize the Fulltext index of the table 650 --innodb-page-cleaners[=#] 651 Page cleaner threads can be from 1 to 64. Default is 4. 652 --innodb-page-size[=#] 653 Page size to use for all InnoDB tablespaces. 654 --innodb-print-all-deadlocks 655 Print all deadlocks to MySQL error log (off by default) 656 --innodb-purge-batch-size[=#] 657 Number of UNDO log pages to purge in one batch from the 658 history list. 659 --innodb-purge-rseg-truncate-frequency[=#] 660 Dictates rate at which UNDO records are purged. Value N 661 means purge rollback segment(s) on every Nth iteration of 662 purge invocation 663 --innodb-purge-threads[=#] 664 Purge threads can be from 1 to 32. Default is 4. 665 --innodb-random-read-ahead 666 Whether to use read ahead for random access within an 667 extent. 668 --innodb-read-ahead-threshold=# 669 Number of pages that must be accessed sequentially for 670 InnoDB to trigger a readahead. 671 --innodb-read-io-threads=# 672 Number of background read I/O threads in InnoDB. 673 --innodb-read-only Start InnoDB in read only mode (off by default) 674 --innodb-replication-delay=# 675 Replication thread delay (ms) on the slave server if 676 innodb_thread_concurrency is reached (0 by default) 677 --innodb-rollback-on-timeout 678 Roll back the complete transaction on lock wait timeout, 679 for 4.x compatibility (disabled by default) 680 --innodb-rollback-segments[=#] 681 Number of undo logs to use (deprecated). 682 --innodb-sort-buffer-size=# 683 Memory buffer size for index creation 684 --innodb-spin-wait-delay[=#] 685 Maximum delay between polling for a spin lock (6 by 686 default) 687 --innodb-stats-auto-recalc 688 InnoDB automatic recalculation of persistent statistics 689 enabled for all tables unless overridden at table level 690 (automatic recalculation is only done when InnoDB decides 691 that the table has changed too much and needs a new 692 statistics) 693 (Defaults to on; use --skip-innodb-stats-auto-recalc to disable.) 694 --innodb-stats-method=name 695 Specifies how InnoDB index statistics collection code 696 should treat NULLs. Possible values are NULLS_EQUAL 697 (default), NULLS_UNEQUAL and NULLS_IGNORED 698 --innodb-stats-on-metadata 699 Enable statistics gathering for metadata commands such as 700 SHOW TABLE STATUS for tables that use transient 701 statistics (off by default) 702 --innodb-stats-persistent 703 InnoDB persistent statistics enabled for all tables 704 unless overridden at table level 705 (Defaults to on; use --skip-innodb-stats-persistent to disable.) 706 --innodb-stats-persistent-sample-pages=# 707 The number of leaf index pages to sample when calculating 708 persistent statistics (by ANALYZE, default 20) 709 --innodb-stats-sample-pages=# 710 Deprecated, use innodb_stats_transient_sample_pages 711 instead 712 --innodb-stats-transient-sample-pages=# 713 The number of leaf index pages to sample when calculating 714 transient statistics (if persistent statistics are not 715 used, default 8) 716 --innodb-status-file 717 Enable SHOW ENGINE INNODB STATUS output in the 718 innodb_status.<pid> file 719 --innodb-status-output 720 Enable InnoDB monitor output to the error log. 721 --innodb-status-output-locks 722 Enable InnoDB lock monitor output to the error log. 723 Requires innodb_status_output=ON. 724 --innodb-strict-mode 725 Use strict mode when evaluating create options. 726 (Defaults to on; use --skip-innodb-strict-mode to disable.) 727 --innodb-support-xa Enable InnoDB support for the XA two-phase commit 728 (Defaults to on; use --skip-innodb-support-xa to disable.) 729 --innodb-sync-array-size[=#] 730 Size of the mutex/lock wait array. 731 --innodb-sync-spin-loops=# 732 Count of spin-loop rounds in InnoDB mutexes (30 by 733 default) 734 --innodb-table-locks 735 Enable InnoDB locking in LOCK TABLES 736 (Defaults to on; use --skip-innodb-table-locks to disable.) 737 --innodb-temp-data-file-path=name 738 Path to files and their sizes making temp-tablespace. 739 --innodb-thread-concurrency=# 740 Helps in performance tuning in heavily concurrent 741 environments. Sets the maximum number of threads allowed 742 inside InnoDB. Value 0 will disable the thread 743 throttling. 744 --innodb-thread-sleep-delay=# 745 Time of innodb thread sleeping before joining InnoDB 746 queue (usec). Value 0 disable a sleep 747 --innodb-tmpdir[=name] 748 Directory for temporary non-tablespace files. 749 --innodb-undo-directory=name 750 Directory where undo tablespace files live, this path can 751 be absolute. 752 --innodb-undo-log-truncate 753 Enable or Disable Truncate of UNDO tablespace. 754 --innodb-undo-logs[=#] 755 Number of undo logs to use. 756 --innodb-undo-tablespaces=# 757 Number of undo tablespaces to use. 758 --innodb-use-native-aio 759 Use native AIO if supported on this platform. 760 (Defaults to on; use --skip-innodb-use-native-aio to disable.) 761 --innodb-write-io-threads=# 762 Number of background write I/O threads in InnoDB. 763 --interactive-timeout=# 764 The number of seconds the server waits for activity on an 765 interactive connection before closing it 766 --internal-tmp-disk-storage-engine[=name] 767 The default storage engine for on-disk internal tmp table 768 --join-buffer-size=# 769 The size of the buffer that is used for full joins 770 --keep-files-on-create 771 Don't overwrite stale .MYD and .MYI even if no directory 772 is specified 773 --key-buffer-size=# The size of the buffer used for index blocks for MyISAM 774 tables. Increase this to get better index handling (for 775 all reads and multiple writes) to as much as you can 776 afford 777 --key-cache-age-threshold=# 778 This characterizes the number of hits a hot block has to 779 be untouched until it is considered aged enough to be 780 downgraded to a warm block. This specifies the percentage 781 ratio of that number of hits to the total number of 782 blocks in key cache 783 --key-cache-block-size=# 784 The default size of key cache blocks 785 --key-cache-division-limit=# 786 The minimum percentage of warm blocks in key cache 787 -L, --language=name Client error messages in given language. May be given as 788 a full path. Deprecated. Use --lc-messages-dir instead. 789 --lc-messages=name Set the language used for the error messages. 790 --lc-messages-dir=name 791 Directory where error messages are 792 --lc-time-names=name 793 Set the language used for the month names and the days of 794 the week. 795 --local-infile Enable LOAD DATA LOCAL INFILE 796 (Defaults to on; use --skip-local-infile to disable.) 797 --lock-wait-timeout=# 798 Timeout in seconds to wait for a lock before returning an 799 error. 800 --log-bin[=name] Log update queries in binary format. Optional (but 801 strongly recommended to avoid replication problems if 802 server's hostname changes) argument should be the chosen 803 location for the binary log files. 804 --log-bin-index=name 805 File that holds the names for binary log files. 806 --log-bin-trust-function-creators 807 If set to FALSE (the default), then when --log-bin is 808 used, creation of a stored function (or trigger) is 809 allowed only to users having the SUPER privilege and only 810 if this stored function (trigger) may not break binary 811 logging. Note that if ALL connections to this server 812 ALWAYS use row-based binary logging, the security issues 813 do not exist and the binary logging cannot break, so you 814 can safely set this to TRUE 815 --log-bin-use-v1-row-events 816 If equal to 1 then version 1 row events are written to a 817 row based binary log. If equal to 0, then the latest 818 version of events are written. This option is useful 819 during some upgrades. 820 --log-builtin-as-identified-by-password 821 Controls logging of CREATE/ALTER/GRANT and SET PASSWORD 822 user statements in replication binlogs, general query 823 logs and audit logs. 824 --log-error[=name] Error log file 825 --log-error-verbosity=# 826 How detailed the error log should be. 1, log errors only. 827 2, log errors and warnings. 3, log errors, warnings, and 828 notes. Messages sent to the client are unaffected by this 829 setting. 830 --log-isam[=name] Log all MyISAM changes to file. 831 --log-output=name Syntax: log-output=value[,value...], where "value" could 832 be TABLE, FILE or NONE 833 --log-queries-not-using-indexes 834 Log queries that are executed without benefit of any 835 index to the slow log if it is open 836 --log-raw Log to general log before any rewriting of the query. For 837 use in debugging, not production as sensitive information 838 may be logged. 839 --log-short-format Don't log extra information to update and slow-query 840 logs. 841 --log-slave-updates Tells the slave to log the updates from the slave thread 842 to the binary log. You will need to turn it on if you 843 plan to daisy-chain the slaves 844 --log-slow-admin-statements 845 Log slow OPTIMIZE, ANALYZE, ALTER and other 846 administrative statements to the slow log if it is open. 847 --log-slow-slave-statements 848 Log slow statements executed by slave thread to the slow 849 log if it is open. 850 --log-statements-unsafe-for-binlog 851 Log statements considered unsafe when using statement 852 based binary logging. 853 (Defaults to on; use --skip-log-statements-unsafe-for-binlog to disable.) 854 --log-syslog Errors, warnings, and similar issues eligible for MySQL's 855 error log file may additionally be sent to the host 856 operating system's system log ("syslog"). 857 (Defaults to on; use --skip-log-syslog to disable.) 858 --log-syslog-tag=name 859 When logging issues using the host operating system's 860 syslog, tag the entries from this particular MySQL server 861 with this ident. This will help distinguish entries from 862 MySQL servers co-existing on the same host machine. A 863 non-empty tag will be appended to the default ident of 864 'mysqld', connected by a hyphen. 865 --log-tc=name Path to transaction coordinator log (used for 866 transactions that affect more than one storage engine, 867 when binary log is disabled). 868 --log-tc-size=# Size of transaction coordinator log. 869 --log-throttle-queries-not-using-indexes=# 870 Log at most this many 'not using index' warnings per 871 minute to the slow log. Any further warnings will be 872 condensed into a single summary line. A value of 0 873 disables throttling. Option has no effect unless 874 --log_queries_not_using_indexes is set. 875 --log-timestamps=name 876 UTC to timestamp log files in zulu time, for more concise 877 timestamps and easier correlation of logs from servers 878 from multiple time zones, or SYSTEM to use the system's 879 local time. This affects only log files, not log tables, 880 as the timestamp columns of the latter can be converted 881 at will. 882 -W, --log-warnings[=#] 883 Log some not critical warnings to the log file 884 --long-query-time=# Log all queries that have taken more than long_query_time 885 seconds to execute to file. The argument will be treated 886 as a decimal value with microsecond precision 887 --low-priority-updates 888 INSERT/DELETE/UPDATE has lower priority than selects 889 --lower-case-table-names[=#] 890 If set to 1 table names are stored in lowercase on disk 891 and table names will be case-insensitive. Should be set 892 to 2 if you are using a case insensitive file system 893 --master-info-file=name 894 The location and name of the file that remembers the 895 master and where the I/O replication thread is in the 896 master's binlogs. 897 --master-info-repository=name 898 Defines the type of the repository for the master 899 information. 900 --master-retry-count=# 901 The number of tries the slave will make to connect to the 902 master before giving up. Deprecated option, use 'CHANGE 903 MASTER TO master_retry_count = <num>' instead. 904 --master-verify-checksum 905 Force checksum verification of logged events in binary 906 log before sending them to slaves or printing them in 907 output of SHOW BINLOG EVENTS. Disabled by default. 908 --max-allowed-packet=# 909 Max packet length to send to or receive from the server 910 --max-binlog-cache-size=# 911 Sets the total size of the transactional cache 912 --max-binlog-dump-events=# 913 Option used by mysql-test for debugging and testing of 914 replication. 915 --max-binlog-size=# Binary log will be rotated automatically when the size 916 exceeds this value. Will also apply to relay logs if 917 max_relay_log_size is 0 918 --max-binlog-stmt-cache-size=# 919 Sets the total size of the statement cache 920 --max-connect-errors=# 921 If there is more than this number of interrupted 922 connections from a host this host will be blocked from 923 further connections 924 --max-connections=# The number of simultaneous clients allowed 925 --max-delayed-threads=# 926 Don't start more than this number of threads to handle 927 INSERT DELAYED statements. If set to zero INSERT DELAYED 928 will be not used. This variable is deprecated along with 929 INSERT DELAYED. 930 --max-digest-length=# 931 Maximum length considered for digest text. 932 --max-error-count=# Max number of errors/warnings to store for a statement 933 --max-execution-time=# 934 Kill SELECT statement that takes over the specified 935 number of milliseconds 936 --max-heap-table-size=# 937 Don't allow creation of heap tables bigger than this 938 --max-join-size=# Joins that are probably going to read more than 939 max_join_size records return an error 940 --max-length-for-sort-data=# 941 Max number of bytes in sorted records 942 --max-points-in-geometry[=#] 943 Maximum number of points in a geometry 944 --max-prepared-stmt-count=# 945 Maximum number of prepared statements in the server 946 --max-relay-log-size=# 947 If non-zero: relay log will be rotated automatically when 948 the size exceeds this value; if zero: when the size 949 exceeds max_binlog_size 950 --max-seeks-for-key=# 951 Limit assumed max number of seeks when looking up rows 952 based on a key 953 --max-sort-length=# The number of bytes to use when sorting BLOB or TEXT 954 values (only the first max_sort_length bytes of each 955 value are used; the rest are ignored) 956 --max-sp-recursion-depth[=#] 957 Maximum stored procedure recursion depth 958 --max-tmp-tables=# Maximum number of temporary tables a client can keep open 959 at a time 960 --max-user-connections=# 961 The maximum number of active connections for a single 962 user (0 = no limit) 963 --max-write-lock-count=# 964 After this many write locks, allow some read locks to run 965 in between 966 --memlock Lock mysqld in memory. 967 --metadata-locks-cache-size=# 968 Has no effect, deprecated 969 --metadata-locks-hash-instances=# 970 Has no effect, deprecated 971 --min-examined-row-limit=# 972 Don't write queries to slow log that examine fewer rows 973 than that 974 --multi-range-count=# 975 Number of key ranges to request at once. This variable 976 has no effect, and is deprecated. It will be removed in a 977 future release. 978 --myisam-block-size=# 979 Block size to be used for MyISAM index pages 980 --myisam-data-pointer-size=# 981 Default pointer size to be used for MyISAM tables 982 --myisam-max-sort-file-size=# 983 Don't use the fast sort index method to created index if 984 the temporary file would get bigger than this 985 --myisam-mmap-size=# 986 Restricts the total memory used for memory mapping of 987 MySQL tables 988 --myisam-recover-options[=name] 989 Syntax: myisam-recover-options[=option[,option...]], 990 where option can be DEFAULT, BACKUP, FORCE, QUICK, or OFF 991 --myisam-repair-threads=# 992 If larger than 1, when repairing a MyISAM table all 993 indexes will be created in parallel, with one thread per 994 index. The value of 1 disables parallel repair 995 --myisam-sort-buffer-size=# 996 The buffer that is allocated when sorting the index when 997 doing a REPAIR or when creating indexes with CREATE INDEX 998 or ALTER TABLE 999 --myisam-stats-method=name 1000 Specifies how MyISAM index statistics collection code 1001 should treat NULLs. Possible values of name are 1002 NULLS_UNEQUAL (default behavior for 4.1 and later), 1003 NULLS_EQUAL (emulate 4.0 behavior), and NULLS_IGNORED 1004 --myisam-use-mmap Use memory mapping for reading and writing MyISAM tables 1005 --mysql-native-password-proxy-users 1006 If set to FALSE (the default), then the 1007 mysql_native_password plugin will not signal for 1008 authenticated users to be checked for mapping to proxy 1009 users. When set to TRUE, the plugin will flag associated 1010 authenticated accounts to be mapped to proxy users when 1011 the server option check_proxy_users is enabled. 1012 --named-pipe Enable the named pipe (NT) 1013 --net-buffer-length=# 1014 Buffer length for TCP/IP and socket communication 1015 --net-read-timeout=# 1016 Number of seconds to wait for more data from a connection 1017 before aborting the read 1018 --net-retry-count=# If a read on a communication port is interrupted, retry 1019 this many times before giving up 1020 --net-write-timeout=# 1021 Number of seconds to wait for a block to be written to a 1022 connection before aborting the write 1023 -n, --new Use very new possible "unsafe" functions 1024 --ngram[=name] Enable or disable ngram plugin. Possible values are ON, 1025 OFF, FORCE (don't start if the plugin fails to load). 1026 --ngram-token-size=# 1027 InnoDB ngram full text plugin parser token size in 1028 characters 1029 --offline-mode Make the server into offline mode 1030 --old Use compatible behavior 1031 --old-alter-table Use old, non-optimized alter table 1032 --old-passwords=# Determine which hash algorithm to use when generating 1033 passwords using the PASSWORD() function 1034 --old-style-user-limits 1035 Enable old-style user limits (before 5.0.3, user 1036 resources were counted per each user+host vs. per 1037 account). 1038 --open-files-limit=# 1039 If this is not 0, then mysqld will use this value to 1040 reserve file descriptors to use with setrlimit(). If this 1041 value is 0 then mysqld will reserve max_connections*5 or 1042 max_connections + table_open_cache*2 (whichever is 1043 larger) number of file descriptors 1044 --optimizer-prune-level=# 1045 Controls the heuristic(s) applied during query 1046 optimization to prune less-promising partial plans from 1047 the optimizer search space. Meaning: 0 - do not apply any 1048 heuristic, thus perform exhaustive search; 1 - prune 1049 plans based on number of retrieved rows 1050 --optimizer-search-depth=# 1051 Maximum depth of search performed by the query optimizer. 1052 Values larger than the number of relations in a query 1053 result in better query plans, but take longer to compile 1054 a query. Values smaller than the number of tables in a 1055 relation result in faster optimization, but may produce 1056 very bad query plans. If set to 0, the system will 1057 automatically pick a reasonable value 1058 --optimizer-switch=name 1059 optimizer_switch=option=val[,option=val...], where option 1060 is one of {index_merge, index_merge_union, 1061 index_merge_sort_union, index_merge_intersection, 1062 engine_condition_pushdown, index_condition_pushdown, mrr, 1063 mrr_cost_based, materialization, semijoin, loosescan, 1064 firstmatch, duplicateweedout, 1065 subquery_materialization_cost_based, block_nested_loop, 1066 batched_key_access, use_index_extensions, 1067 condition_fanout_filter, derived_merge} and val is one of 1068 {on, off, default} 1069 --optimizer-trace=name 1070 Controls tracing of the Optimizer: 1071 optimizer_trace=option=val[,option=val...], where option 1072 is one of {enabled, one_line} and val is one of {on, 1073 default} 1074 --optimizer-trace-features=name 1075 Enables/disables tracing of selected features of the 1076 Optimizer: 1077 optimizer_trace_features=option=val[,option=val...], 1078 where option is one of {greedy_search, range_optimizer, 1079 dynamic_range, repeated_subselect} and val is one of {on, 1080 off, default} 1081 --optimizer-trace-limit=# 1082 Maximum number of shown optimizer traces 1083 --optimizer-trace-max-mem-size=# 1084 Maximum allowed cumulated size of stored optimizer traces 1085 --optimizer-trace-offset=# 1086 Offset of first optimizer trace to show; see manual 1087 --parser-max-mem-size=# 1088 Maximum amount of memory available to the parser 1089 --partition[=name] Enable or disable partition plugin. Possible values are 1090 ON, OFF, FORCE (don't start if the plugin fails to load). 1091 --performance-schema 1092 Enable the performance schema. 1093 (Defaults to on; use --skip-performance-schema to disable.) 1094 --performance-schema-accounts-size=# 1095 Maximum number of instrumented user@host accounts. Use 0 1096 to disable, -1 for automated scaling. 1097 --performance-schema-consumer-events-stages-current 1098 Default startup value for the events_stages_current 1099 consumer. 1100 --performance-schema-consumer-events-stages-history 1101 Default startup value for the events_stages_history 1102 consumer. 1103 --performance-schema-consumer-events-stages-history-long 1104 Default startup value for the events_stages_history_long 1105 consumer. 1106 --performance-schema-consumer-events-statements-current 1107 Default startup value for the events_statements_current 1108 consumer. 1109 (Defaults to on; use --skip-performance-schema-consumer-events-statements-current to disable.) 1110 --performance-schema-consumer-events-statements-history 1111 Default startup value for the events_statements_history 1112 consumer. 1113 (Defaults to on; use --skip-performance-schema-consumer-events-statements-history to disable.) 1114 --performance-schema-consumer-events-statements-history-long 1115 Default startup value for the 1116 events_statements_history_long consumer. 1117 --performance-schema-consumer-events-transactions-current 1118 Default startup value for the events_transactions_current 1119 consumer. 1120 --performance-schema-consumer-events-transactions-history 1121 Default startup value for the events_transactions_history 1122 consumer. 1123 --performance-schema-consumer-events-transactions-history-long 1124 Default startup value for the 1125 events_transactions_history_long consumer. 1126 --performance-schema-consumer-events-waits-current 1127 Default startup value for the events_waits_current 1128 consumer. 1129 --performance-schema-consumer-events-waits-history 1130 Default startup value for the events_waits_history 1131 consumer. 1132 --performance-schema-consumer-events-waits-history-long 1133 Default startup value for the events_waits_history_long 1134 consumer. 1135 --performance-schema-consumer-global-instrumentation 1136 Default startup value for the global_instrumentation 1137 consumer. 1138 (Defaults to on; use --skip-performance-schema-consumer-global-instrumentation to disable.) 1139 --performance-schema-consumer-statements-digest 1140 Default startup value for the statements_digest consumer. 1141 (Defaults to on; use --skip-performance-schema-consumer-statements-digest to disable.) 1142 --performance-schema-consumer-thread-instrumentation 1143 Default startup value for the thread_instrumentation 1144 consumer. 1145 (Defaults to on; use --skip-performance-schema-consumer-thread-instrumentation to disable.) 1146 --performance-schema-digests-size=# 1147 Size of the statement digest. Use 0 to disable, -1 for 1148 automated sizing. 1149 --performance-schema-events-stages-history-long-size=# 1150 Number of rows in EVENTS_STAGES_HISTORY_LONG. Use 0 to 1151 disable, -1 for automated sizing. 1152 --performance-schema-events-stages-history-size=# 1153 Number of rows per thread in EVENTS_STAGES_HISTORY. Use 0 1154 to disable, -1 for automated sizing. 1155 --performance-schema-events-statements-history-long-size=# 1156 Number of rows in EVENTS_STATEMENTS_HISTORY_LONG. Use 0 1157 to disable, -1 for automated sizing. 1158 --performance-schema-events-statements-history-size=# 1159 Number of rows per thread in EVENTS_STATEMENTS_HISTORY. 1160 Use 0 to disable, -1 for automated sizing. 1161 --performance-schema-events-transactions-history-long-size=# 1162 Number of rows in EVENTS_TRANSACTIONS_HISTORY_LONG. Use 0 1163 to disable, -1 for automated sizing. 1164 --performance-schema-events-transactions-history-size=# 1165 Number of rows per thread in EVENTS_TRANSACTIONS_HISTORY. 1166 Use 0 to disable, -1 for automated sizing. 1167 --performance-schema-events-waits-history-long-size=# 1168 Number of rows in EVENTS_WAITS_HISTORY_LONG. Use 0 to 1169 disable, -1 for automated sizing. 1170 --performance-schema-events-waits-history-size=# 1171 Number of rows per thread in EVENTS_WAITS_HISTORY. Use 0 1172 to disable, -1 for automated sizing. 1173 --performance-schema-hosts-size=# 1174 Maximum number of instrumented hosts. Use 0 to disable, 1175 -1 for automated scaling. 1176 --performance-schema-instrument[=name] 1177 Default startup value for a performance schema 1178 instrument. 1179 --performance-schema-max-cond-classes=# 1180 Maximum number of condition instruments. 1181 --performance-schema-max-cond-instances=# 1182 Maximum number of instrumented condition objects. Use 0 1183 to disable, -1 for automated scaling. 1184 --performance-schema-max-digest-length=# 1185 Maximum length considered for digest text, when stored in 1186 performance_schema tables. 1187 --performance-schema-max-file-classes=# 1188 Maximum number of file instruments. 1189 --performance-schema-max-file-handles=# 1190 Maximum number of opened instrumented files. 1191 --performance-schema-max-file-instances=# 1192 Maximum number of instrumented files. Use 0 to disable, 1193 -1 for automated scaling. 1194 --performance-schema-max-index-stat=# 1195 Maximum number of index statistics for instrumented 1196 tables. Use 0 to disable, -1 for automated scaling. 1197 --performance-schema-max-memory-classes=# 1198 Maximum number of memory pool instruments. 1199 --performance-schema-max-metadata-locks=# 1200 Maximum number of metadata locks. Use 0 to disable, -1 1201 for automated scaling. 1202 --performance-schema-max-mutex-classes=# 1203 Maximum number of mutex instruments. 1204 --performance-schema-max-mutex-instances=# 1205 Maximum number of instrumented MUTEX objects. Use 0 to 1206 disable, -1 for automated scaling. 1207 --performance-schema-max-prepared-statements-instances=# 1208 Maximum number of instrumented prepared statements. Use 0 1209 to disable, -1 for automated scaling. 1210 --performance-schema-max-program-instances=# 1211 Maximum number of instrumented programs. Use 0 to 1212 disable, -1 for automated scaling. 1213 --performance-schema-max-rwlock-classes=# 1214 Maximum number of rwlock instruments. 1215 --performance-schema-max-rwlock-instances=# 1216 Maximum number of instrumented RWLOCK objects. Use 0 to 1217 disable, -1 for automated scaling. 1218 --performance-schema-max-socket-classes=# 1219 Maximum number of socket instruments. 1220 --performance-schema-max-socket-instances=# 1221 Maximum number of opened instrumented sockets. Use 0 to 1222 disable, -1 for automated scaling. 1223 --performance-schema-max-sql-text-length=# 1224 Maximum length of displayed sql text. 1225 --performance-schema-max-stage-classes=# 1226 Maximum number of stage instruments. 1227 --performance-schema-max-statement-classes=# 1228 Maximum number of statement instruments. 1229 --performance-schema-max-statement-stack=# 1230 Number of rows per thread in EVENTS_STATEMENTS_CURRENT. 1231 --performance-schema-max-table-handles=# 1232 Maximum number of opened instrumented tables. Use 0 to 1233 disable, -1 for automated scaling. 1234 --performance-schema-max-table-instances=# 1235 Maximum number of instrumented tables. Use 0 to disable, 1236 -1 for automated scaling. 1237 --performance-schema-max-table-lock-stat=# 1238 Maximum number of lock statistics for instrumented 1239 tables. Use 0 to disable, -1 for automated scaling. 1240 --performance-schema-max-thread-classes=# 1241 Maximum number of thread instruments. 1242 --performance-schema-max-thread-instances=# 1243 Maximum number of instrumented threads. Use 0 to disable, 1244 -1 for automated scaling. 1245 --performance-schema-session-connect-attrs-size=# 1246 Size of session attribute string buffer per thread. Use 0 1247 to disable, -1 for automated sizing. 1248 --performance-schema-setup-actors-size=# 1249 Maximum number of rows in SETUP_ACTORS. Use 0 to disable, 1250 -1 for automated scaling. 1251 --performance-schema-setup-objects-size=# 1252 Maximum number of rows in SETUP_OBJECTS. Use 0 to 1253 disable, -1 for automated scaling. 1254 --performance-schema-users-size=# 1255 Maximum number of instrumented users. Use 0 to disable, 1256 -1 for automated scaling. 1257 --pid-file=name Pid file used by safe_mysqld 1258 --plugin-dir=name Directory for plugins 1259 --plugin-load=name Optional semicolon-separated list of plugins to load, 1260 where each plugin is identified as name=library, where 1261 name is the plugin name and library is the plugin library 1262 in plugin_dir. 1263 --plugin-load-add=name 1264 Optional semicolon-separated list of plugins to load, 1265 where each plugin is identified as name=library, where 1266 name is the plugin name and library is the plugin library 1267 in plugin_dir. This option adds to the list specified by 1268 --plugin-load in an incremental way. Multiple 1269 --plugin-load-add are supported. 1270 -P, --port=# Port number to use for connection or 0 to default to, 1271 my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default 1272 (3306), whatever comes first 1273 --port-open-timeout=# 1274 Maximum time in seconds to wait for the port to become 1275 free. (Default: No wait). 1276 --preload-buffer-size=# 1277 The size of the buffer that is allocated when preloading 1278 indexes 1279 --profiling-history-size=# 1280 Limit of query profiling memory 1281 --query-alloc-block-size=# 1282 Allocation block size for query parsing and execution 1283 --query-cache-limit=# 1284 Don't cache results that are bigger than this 1285 --query-cache-min-res-unit=# 1286 The minimum size for blocks allocated by the query cache 1287 --query-cache-size=# 1288 The memory allocated to store results from old queries 1289 --query-cache-type=name 1290 OFF = Don't cache or retrieve results. ON = Cache all 1291 results except SELECT SQL_NO_CACHE ... queries. DEMAND = 1292 Cache only SELECT SQL_CACHE ... queries 1293 --query-cache-wlock-invalidate 1294 Invalidate queries in query cache on LOCK for write 1295 --query-prealloc-size=# 1296 Persistent buffer for query parsing and execution 1297 --range-alloc-block-size=# 1298 Allocation block size for storing ranges during 1299 optimization 1300 --range-optimizer-max-mem-size=# 1301 Maximum amount of memory used by the range optimizer to 1302 allocate predicates during range analysis. The larger the 1303 number, more memory may be consumed during range 1304 analysis. If the value is too low to completed range 1305 optimization of a query, index range scan will not be 1306 considered for this query. A value of 0 means range 1307 optimizer does not have any cap on memory. 1308 --read-buffer-size=# 1309 Each thread that does a sequential scan allocates a 1310 buffer of this size for each table it scans. If you do 1311 many sequential scans, you may want to increase this 1312 value 1313 --read-only Make all non-temporary tables read-only, with the 1314 exception for replication (slave) threads and users with 1315 the SUPER privilege 1316 --read-rnd-buffer-size=# 1317 When reading rows in sorted order after a sort, the rows 1318 are read through this buffer to avoid a disk seeks 1319 --relay-log=name The location and name to use for relay logs 1320 --relay-log-index=name 1321 File that holds the names for relay log files. 1322 --relay-log-info-file=name 1323 The location and name of the file that remembers where 1324 the SQL replication thread is in the relay logs 1325 --relay-log-info-repository=name 1326 Defines the type of the repository for the relay log 1327 information and associated workers. 1328 --relay-log-purge if disabled - do not purge relay logs. if enabled - purge 1329 them as soon as they are no more needed 1330 (Defaults to on; use --skip-relay-log-purge to disable.) 1331 --relay-log-recovery 1332 Enables automatic relay log recovery right after the 1333 database startup, which means that the IO Thread starts 1334 re-fetching from the master right after the last 1335 transaction processed 1336 --relay-log-space-limit=# 1337 Maximum space to use for all relay logs 1338 --replicate-do-db=name 1339 Tells the slave thread to restrict replication to the 1340 specified database. To specify more than one database, 1341 use the directive multiple times, once for each database. 1342 Note that this will only work if you do not use 1343 cross-database queries such as UPDATE some_db.some_table 1344 SET foo='bar' while having selected a different or no 1345 database. If you need cross database updates to work, 1346 make sure you have 3.23.28 or later, and use 1347 replicate-wild-do-table=db_name.%. 1348 --replicate-do-table=name 1349 Tells the slave thread to restrict replication to the 1350 specified table. To specify more than one table, use the 1351 directive multiple times, once for each table. This will 1352 work for cross-database updates, in contrast to 1353 replicate-do-db. 1354 --replicate-ignore-db=name 1355 Tells the slave thread to not replicate to the specified 1356 database. To specify more than one database to ignore, 1357 use the directive multiple times, once for each database. 1358 This option will not work if you use cross database 1359 updates. If you need cross database updates to work, make 1360 sure you have 3.23.28 or later, and use 1361 replicate-wild-ignore-table=db_name.%. 1362 --replicate-ignore-table=name 1363 Tells the slave thread to not replicate to the specified 1364 table. To specify more than one table to ignore, use the 1365 directive multiple times, once for each table. This will 1366 work for cross-database updates, in contrast to 1367 replicate-ignore-db. 1368 --replicate-rewrite-db=name 1369 Updates to a database with a different name than the 1370 original. Example: 1371 replicate-rewrite-db=master_db_name->slave_db_name. 1372 --replicate-same-server-id 1373 In replication, if set to 1, do not skip events having 1374 our server id. Default value is 0 (to break infinite 1375 loops in circular replication). Can't be set to 1 if 1376 --log-slave-updates is used. 1377 --replicate-wild-do-table=name 1378 Tells the slave thread to restrict replication to the 1379 tables that match the specified wildcard pattern. To 1380 specify more than one table, use the directive multiple 1381 times, once for each table. This will work for 1382 cross-database updates. Example: 1383 replicate-wild-do-table=foo%.bar% will replicate only 1384 updates to tables in all databases that start with foo 1385 and whose table names start with bar. 1386 --replicate-wild-ignore-table=name 1387 Tells the slave thread to not replicate to the tables 1388 that match the given wildcard pattern. To specify more 1389 than one table to ignore, use the directive multiple 1390 times, once for each table. This will work for 1391 cross-database updates. Example: 1392 replicate-wild-ignore-table=foo%.bar% will not do updates 1393 to tables in databases that start with foo and whose 1394 table names start with bar. 1395 --report-host=name Hostname or IP of the slave to be reported to the master 1396 during slave registration. Will appear in the output of 1397 SHOW SLAVE HOSTS. Leave unset if you do not want the 1398 slave to register itself with the master. Note that it is 1399 not sufficient for the master to simply read the IP of 1400 the slave off the socket once the slave connects. Due to 1401 NAT and other routing issues, that IP may not be valid 1402 for connecting to the slave from the master or other 1403 hosts 1404 --report-password=name 1405 The account password of the slave to be reported to the 1406 master during slave registration 1407 --report-port=# Port for connecting to slave reported to the master 1408 during slave registration. Set it only if the slave is 1409 listening on a non-default port or if you have a special 1410 tunnel from the master or other clients to the slave. If 1411 not sure, leave this option unset 1412 --report-user=name The account user name of the slave to be reported to the 1413 master during slave registration 1414 --require-secure-transport 1415 When this option is enabled, connections attempted using 1416 insecure transport will be rejected. Secure transports 1417 are SSL/TLS, Unix socket or Shared Memory (on Windows). 1418 --rpl-stop-slave-timeout=# 1419 Timeout in seconds to wait for slave to stop before 1420 returning a warning. 1421 --safe-user-create Don't allow new user creation by the user who has no 1422 write privileges to the mysql.user table. 1423 --secure-auth Disallow authentication for accounts that have old 1424 (pre-4.1) passwords. Deprecated. Always TRUE. 1425 (Defaults to on; use --skip-secure-auth to disable.) 1426 --secure-file-priv=name 1427 Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to 1428 files within specified directory 1429 --server-id=# Uniquely identifies the server instance in the community 1430 of replication partners 1431 --server-id-bits=# Set number of significant bits in server-id 1432 --session-track-gtids=name 1433 Controls the amount of global transaction ids to be 1434 included in the response packet sent by the 1435 server.(Default: OFF). 1436 --session-track-schema 1437 Track changes to the 'default schema'. 1438 (Defaults to on; use --skip-session-track-schema to disable.) 1439 --session-track-state-change 1440 Track changes to the 'session state'. 1441 --session-track-system-variables=name 1442 Track changes in registered system variables. 1443 --session-track-transaction-info=name 1444 Track changes to the transaction attributes. OFF to 1445 disable; STATE to track just transaction state (Is there 1446 an active transaction? Does it have any data? etc.); 1447 CHARACTERISTICS to track transaction state and report all 1448 statements needed to start a transaction with the same 1449 characteristics (isolation level, read only/read write, 1450 snapshot - but not any work done / data modified within 1451 the transaction). 1452 --sha256-password-proxy-users 1453 If set to FALSE (the default), then the sha256_password 1454 authentication plugin will not signal for authenticated 1455 users to be checked for mapping to proxy users. When set 1456 to TRUE, the plugin will flag associated authenticated 1457 accounts to be mapped to proxy users when the server 1458 option check_proxy_users is enabled. 1459 --shared-memory Enable the shared memory 1460 --shared-memory-base-name=name 1461 Base name of shared memory 1462 --show-compatibility-56 1463 SHOW commands / INFORMATION_SCHEMA tables compatible with 1464 MySQL 5.6 1465 --show-old-temporals 1466 When this option is enabled, the pre-5.6.4 temporal types 1467 will be marked in the 'SHOW CREATE TABLE' and 1468 'INFORMATION_SCHEMA.COLUMNS' table as a comment in 1469 COLUMN_TYPE field. This variable is deprecated and will 1470 be removed in a future release. 1471 --show-slave-auth-info 1472 Show user and password in SHOW SLAVE HOSTS on this 1473 master. 1474 --skip-grant-tables Start without grant tables. This gives all users FULL 1475 ACCESS to all tables. 1476 --skip-host-cache Don't cache host names. 1477 --skip-name-resolve Don't resolve hostnames. All hostnames are IP's or 1478 'localhost'. 1479 --skip-networking Don't allow connection with TCP/IP 1480 --skip-new Don't use new, possibly wrong routines. 1481 --skip-show-database 1482 Don't allow 'SHOW DATABASE' commands 1483 --skip-slave-start If set, slave is not autostarted. 1484 --skip-stack-trace Don't print a stack trace on failure. 1485 --slave-allow-batching 1486 Allow slave to batch requests 1487 --slave-checkpoint-group=# 1488 Maximum number of processed transactions by 1489 Multi-threaded slave before a checkpoint operation is 1490 called to update progress status. 1491 --slave-checkpoint-period=# 1492 Gather workers' activities to Update progress status of 1493 Multi-threaded slave and flush the relay log info to disk 1494 after every #th milli-seconds. 1495 --slave-compressed-protocol 1496 Use compression on master/slave protocol 1497 --slave-exec-mode=name 1498 Modes for how replication events should be executed. 1499 Legal values are STRICT (default) and IDEMPOTENT. In 1500 IDEMPOTENT mode, replication will not stop for operations 1501 that are idempotent. In STRICT mode, replication will 1502 stop on any unexpected difference between the master and 1503 the slave 1504 --slave-load-tmpdir=name 1505 The location where the slave should put its temporary 1506 files when replicating a LOAD DATA INFILE command 1507 --slave-max-allowed-packet=# 1508 The maximum packet length to sent successfully from the 1509 master to slave. 1510 --slave-net-timeout=# 1511 Number of seconds to wait for more data from a 1512 master/slave connection before aborting the read 1513 --slave-parallel-type=name 1514 Specifies if the slave will use database partitioning or 1515 information from master to parallelize 1516 transactions.(Default: DATABASE). 1517 --slave-parallel-workers=# 1518 Number of worker threads for executing events in parallel 1519 1520 --slave-pending-jobs-size-max=# 1521 Max size of Slave Worker queues holding yet not applied 1522 events.The least possible value must be not less than the 1523 master side max_allowed_packet. 1524 --slave-preserve-commit-order 1525 Force slave workers to make commits in the same order as 1526 on the master. Disabled by default. 1527 --slave-rows-search-algorithms=name 1528 Set of searching algorithms that the slave will use while 1529 searching for records from the storage engine to either 1530 updated or deleted them. Possible values are: INDEX_SCAN, 1531 TABLE_SCAN and HASH_SCAN. Any combination is allowed, and 1532 the slave will always pick the most suitable algorithm 1533 for any given scenario. (Default: INDEX_SCAN, 1534 TABLE_SCAN). 1535 --slave-skip-errors=name 1536 Tells the slave thread to continue replication when a 1537 query event returns an error from the provided list 1538 --slave-sql-verify-checksum 1539 Force checksum verification of replication events after 1540 reading them from relay log. Note: Events are always 1541 checksum-verified by slave on receiving them from the 1542 network before writing them to the relay log. Enabled by 1543 default. 1544 (Defaults to on; use --skip-slave-sql-verify-checksum to disable.) 1545 --slave-transaction-retries=# 1546 Number of times the slave SQL thread will retry a 1547 transaction in case it failed with a deadlock or elapsed 1548 lock wait timeout, before giving up and stopping 1549 --slave-type-conversions=name 1550 Set of slave type conversions that are enabled. Legal 1551 values are: ALL_LOSSY to enable lossy conversions, 1552 ALL_NON_LOSSY to enable non-lossy conversions, 1553 ALL_UNSIGNED to treat all integer column type data to be 1554 unsigned values, and ALL_SIGNED to treat all integer 1555 column type data to be signed values. Default treatment 1556 is ALL_SIGNED. If ALL_SIGNED and ALL_UNSIGNED both are 1557 specified, ALL_SIGNED will take higher priority than 1558 ALL_UNSIGNED. If the variable is assigned the empty set, 1559 no conversions are allowed and it is expected that the 1560 types match exactly. 1561 --slow-launch-time=# 1562 If creating the thread takes longer than this value (in 1563 seconds), the Slow_launch_threads counter will be 1564 incremented 1565 --slow-query-log Log slow queries to a table or log file. Defaults logging 1566 to a file hostname-slow.log or a table mysql.slow_log if 1567 --log-output=TABLE is used. Must be enabled to activate 1568 other slow log options 1569 --slow-query-log-file=name 1570 Log slow queries to given log file. Defaults logging to 1571 hostname-slow.log. Must be enabled to activate other slow 1572 log options 1573 --slow-start-timeout=# 1574 Maximum number of milliseconds that the service control 1575 manager should wait before trying to kill the windows 1576 service during startup(Default: 15000). 1577 --socket=name Socket file to use for connection 1578 --sort-buffer-size=# 1579 Each thread that needs to do a sort allocates a buffer of 1580 this size 1581 --sporadic-binlog-dump-fail 1582 Option used by mysql-test for debugging and testing of 1583 replication. 1584 --sql-mode=name Syntax: sql-mode=mode[,mode[,mode...]]. See the manual 1585 for the complete list of valid sql modes 1586 --ssl Enable SSL for connection (automatically enabled with 1587 other flags). 1588 (Defaults to on; use --skip-ssl to disable.) 1589 --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies --ssl) 1590 --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl) 1591 --ssl-cert=name X509 cert in PEM format (implies --ssl) 1592 --ssl-cipher=name SSL cipher to use (implies --ssl) 1593 --ssl-crl=name CRL file in PEM format (check OpenSSL docs, implies 1594 --ssl) 1595 --ssl-crlpath=name CRL directory (check OpenSSL docs, implies --ssl) 1596 --ssl-key=name X509 key in PEM format (implies --ssl) 1597 --standalone Dummy option to start as a standalone program (NT). 1598 --stored-program-cache=# 1599 The soft upper limit for number of cached stored routines 1600 for one connection. 1601 --super-read-only Make all non-temporary tables read-only, with the 1602 exception for replication (slave) threads. Users with 1603 the SUPER privilege are affected, unlike read_only. 1604 Setting super_read_only to ON also sets read_only to ON. 1605 -s, --symbolic-links 1606 Enable symbolic link support. 1607 (Defaults to on; use --skip-symbolic-links to disable.) 1608 --sync-binlog=# Synchronously flush binary log to disk after every #th 1609 write to the file. Use 0 to disable synchronous flushing 1610 --sync-frm Sync .frm files to disk on creation 1611 (Defaults to on; use --skip-sync-frm to disable.) 1612 --sync-master-info=# 1613 Synchronously flush master info to disk after every #th 1614 event. Use 0 to disable synchronous flushing 1615 --sync-relay-log=# Synchronously flush relay log to disk after every #th 1616 event. Use 0 to disable synchronous flushing 1617 --sync-relay-log-info=# 1618 Synchronously flush relay log info to disk after every 1619 #th transaction. Use 0 to disable synchronous flushing 1620 --sysdate-is-now Non-default option to alias SYSDATE() to NOW() to make it 1621 safe-replicable. Since 5.0, SYSDATE() returns a `dynamic' 1622 value different for different invocations, even within 1623 the same statement. 1624 --table-definition-cache=# 1625 The number of cached table definitions 1626 --table-open-cache=# 1627 The number of cached open tables (total for all table 1628 cache instances) 1629 --table-open-cache-instances=# 1630 The number of table cache instances 1631 --tc-heuristic-recover=name 1632 Decision to use in heuristic recover process. Possible 1633 values are OFF, COMMIT or ROLLBACK. 1634 --temp-pool This option is ignored on this OS. 1635 (Defaults to on; use --skip-temp-pool to disable.) 1636 --thread-cache-size=# 1637 How many threads we should keep in a cache for reuse 1638 --thread-handling=name 1639 Define threads usage for handling queries, one of 1640 one-thread-per-connection, no-threads, loaded-dynamically 1641 --thread-stack=# The stack size for each thread 1642 --time-format=name The TIME format (ignored) 1643 --tls-version=name TLS version, permitted values are TLSv1, TLSv1.1, 1644 TLSv1.2(Only for openssl) 1645 --tmp-table-size=# If an internal in-memory temporary table exceeds this 1646 size, MySQL will automatically convert it to an on-disk 1647 MyISAM table 1648 -t, --tmpdir=name Path for temporary files. Several paths may be specified, 1649 separated by a semicolon (;), in this case they are used 1650 in a round-robin fashion 1651 --transaction-alloc-block-size=# 1652 Allocation block size for transactions to be stored in 1653 binary log 1654 --transaction-isolation=name 1655 Default transaction isolation level. 1656 --transaction-prealloc-size=# 1657 Persistent buffer for transactions to be stored in binary 1658 log 1659 --transaction-read-only 1660 Default transaction access mode. True if transactions are 1661 read-only. 1662 --transaction-write-set-extraction[=name] 1663 This option is used to let the server know when to 1664 extract the write set which will be used for various 1665 purposes. 1666 --updatable-views-with-limit=name 1667 YES = Don't issue an error message (warning only) if a 1668 VIEW without presence of a key of the underlying table is 1669 used in queries with a LIMIT clause for updating. NO = 1670 Prohibit update of a VIEW, which does not contain a key 1671 of the underlying table and the query uses a LIMIT clause 1672 (usually get from GUI tools) 1673 -u, --user=name Run mysqld daemon as user. 1674 --validate-user-plugins 1675 Turns on additional validation of authentication plugins 1676 assigned to user accounts. 1677 (Defaults to on; use --skip-validate-user-plugins to disable.) 1678 -v, --verbose Used with --help option for detailed help. 1679 -V, --version Output version information and exit. 1680 --wait-timeout=# The number of seconds the server waits for activity on a 1681 connection before closing it 1682 1683 Variables (--variable-name=value) 1684 and boolean options {FALSE|TRUE} Value (after reading options) 1685 ------------------------------------------------------------ ------------- 1686 abort-slave-event-count 0 1687 allow-suspicious-udfs FALSE 1688 archive ON 1689 auto-increment-increment 1 1690 auto-increment-offset 1 1691 autocommit TRUE 1692 automatic-sp-privileges TRUE 1693 avoid-temporal-upgrade FALSE 1694 back-log 80 1695 basedir F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64 1696 big-tables FALSE 1697 bind-address * 1698 binlog-cache-size 32768 1699 binlog-checksum CRC32 1700 binlog-direct-non-transactional-updates FALSE 1701 binlog-error-action ABORT_SERVER 1702 binlog-format ROW 1703 binlog-group-commit-sync-delay 0 1704 binlog-group-commit-sync-no-delay-count 0 1705 binlog-gtid-simple-recovery TRUE 1706 binlog-max-flush-queue-time 0 1707 binlog-order-commits TRUE 1708 binlog-row-event-max-size 8192 1709 binlog-row-image FULL 1710 binlog-rows-query-log-events FALSE 1711 binlog-stmt-cache-size 32768 1712 blackhole ON 1713 block-encryption-mode aes-128-ecb 1714 bulk-insert-buffer-size 8388608 1715 character-set-client-handshake TRUE 1716 character-set-filesystem binary 1717 character-set-server latin1 1718 character-sets-dir F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64sharecharsets 1719 check-proxy-users FALSE 1720 chroot (No default value) 1721 collation-server latin1_swedish_ci 1722 completion-type NO_CHAIN 1723 concurrent-insert AUTO 1724 connect-timeout 10 1725 console FALSE 1726 datadir F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64data 1727 date-format %Y-%m-%d 1728 datetime-format %Y-%m-%d %H:%i:%s 1729 default-authentication-plugin mysql_native_password 1730 default-password-lifetime 0 1731 default-storage-engine InnoDB 1732 default-time-zone (No default value) 1733 default-tmp-storage-engine InnoDB 1734 default-week-format 0 1735 delay-key-write ON 1736 delayed-insert-limit 100 1737 delayed-insert-timeout 300 1738 delayed-queue-size 1000 1739 des-key-file (No default value) 1740 disabled-storage-engines 1741 disconnect-on-expired-password TRUE 1742 disconnect-slave-event-count 0 1743 div-precision-increment 4 1744 end-markers-in-json FALSE 1745 enforce-gtid-consistency FALSE 1746 eq-range-index-dive-limit 200 1747 event-scheduler OFF 1748 expire-logs-days 0 1749 explicit-defaults-for-timestamp FALSE 1750 external-locking FALSE 1751 federated ON 1752 flush FALSE 1753 flush-time 0 1754 ft-boolean-syntax + -><()~*:""&| 1755 ft-max-word-len 84 1756 ft-min-word-len 4 1757 ft-query-expansion-limit 20 1758 ft-stopword-file (No default value) 1759 gdb FALSE 1760 general-log FALSE 1761 general-log-file F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64dataTY1035.log 1762 group-concat-max-len 1024 1763 gtid-executed-compression-period 1000 1764 gtid-mode OFF 1765 help TRUE 1766 host-cache-size 279 1767 ignore-builtin-innodb FALSE 1768 init-connect 1769 init-file (No default value) 1770 init-slave 1771 initialize FALSE 1772 initialize-insecure FALSE 1773 innodb-adaptive-flushing TRUE 1774 innodb-adaptive-flushing-lwm 10 1775 innodb-adaptive-hash-index TRUE 1776 innodb-adaptive-hash-index-parts 8 1777 innodb-adaptive-max-sleep-delay 150000 1778 innodb-api-bk-commit-interval 5 1779 innodb-api-disable-rowlock FALSE 1780 innodb-api-enable-binlog FALSE 1781 innodb-api-enable-mdl FALSE 1782 innodb-api-trx-level 0 1783 innodb-autoextend-increment 64 1784 innodb-autoinc-lock-mode 1 1785 innodb-buffer-pool-chunk-size 134217728 1786 innodb-buffer-pool-dump-at-shutdown TRUE 1787 innodb-buffer-pool-dump-now FALSE 1788 innodb-buffer-pool-dump-pct 25 1789 innodb-buffer-pool-filename ib_buffer_pool 1790 innodb-buffer-pool-instances 0 1791 innodb-buffer-pool-load-abort FALSE 1792 innodb-buffer-pool-load-at-startup TRUE 1793 innodb-buffer-pool-load-now FALSE 1794 innodb-buffer-pool-size 134217728 1795 innodb-change-buffer-max-size 25 1796 innodb-change-buffering all 1797 innodb-checksum-algorithm crc32 1798 innodb-checksums TRUE 1799 innodb-cmp-per-index-enabled FALSE 1800 innodb-commit-concurrency 0 1801 innodb-compression-failure-threshold-pct 5 1802 innodb-compression-level 6 1803 innodb-compression-pad-pct-max 50 1804 innodb-concurrency-tickets 5000 1805 innodb-data-file-path (No default value) 1806 innodb-data-home-dir (No default value) 1807 innodb-default-row-format dynamic 1808 innodb-disable-sort-file-cache FALSE 1809 innodb-doublewrite TRUE 1810 innodb-fast-shutdown 1 1811 innodb-file-format Barracuda 1812 innodb-file-format-check TRUE 1813 innodb-file-format-max Antelope 1814 innodb-file-per-table TRUE 1815 innodb-fill-factor 100 1816 innodb-flush-log-at-timeout 1 1817 innodb-flush-log-at-trx-commit 1 1818 innodb-flush-method (No default value) 1819 innodb-flush-neighbors 1 1820 innodb-flush-sync TRUE 1821 innodb-flushing-avg-loops 30 1822 innodb-force-load-corrupted FALSE 1823 innodb-force-recovery 0 1824 innodb-ft-aux-table (No default value) 1825 innodb-ft-cache-size 8000000 1826 innodb-ft-enable-diag-print FALSE 1827 innodb-ft-enable-stopword TRUE 1828 innodb-ft-max-token-size 84 1829 innodb-ft-min-token-size 3 1830 innodb-ft-num-word-optimize 2000 1831 innodb-ft-result-cache-limit 2000000000 1832 innodb-ft-server-stopword-table (No default value) 1833 innodb-ft-sort-pll-degree 2 1834 innodb-ft-total-cache-size 640000000 1835 innodb-ft-user-stopword-table (No default value) 1836 innodb-io-capacity 200 1837 innodb-io-capacity-max 4294967295 1838 innodb-large-prefix TRUE 1839 innodb-lock-wait-timeout 50 1840 innodb-locks-unsafe-for-binlog FALSE 1841 innodb-log-buffer-size 16777216 1842 innodb-log-checksums TRUE 1843 innodb-log-compressed-pages TRUE 1844 innodb-log-file-size 50331648 1845 innodb-log-files-in-group 2 1846 innodb-log-group-home-dir (No default value) 1847 innodb-log-write-ahead-size 8192 1848 innodb-lru-scan-depth 1024 1849 innodb-max-dirty-pages-pct 75 1850 innodb-max-dirty-pages-pct-lwm 0 1851 innodb-max-purge-lag 0 1852 innodb-max-purge-lag-delay 0 1853 innodb-max-undo-log-size 1073741824 1854 innodb-monitor-disable (No default value) 1855 innodb-monitor-enable (No default value) 1856 innodb-monitor-reset (No default value) 1857 innodb-monitor-reset-all (No default value) 1858 innodb-old-blocks-pct 37 1859 innodb-old-blocks-time 1000 1860 innodb-online-alter-log-max-size 134217728 1861 innodb-open-files 0 1862 innodb-optimize-fulltext-only FALSE 1863 innodb-page-cleaners 4 1864 innodb-page-size 16384 1865 innodb-print-all-deadlocks FALSE 1866 innodb-purge-batch-size 300 1867 innodb-purge-rseg-truncate-frequency 128 1868 innodb-purge-threads 4 1869 innodb-random-read-ahead FALSE 1870 innodb-read-ahead-threshold 56 1871 innodb-read-io-threads 4 1872 innodb-read-only FALSE 1873 innodb-replication-delay 0 1874 innodb-rollback-on-timeout FALSE 1875 innodb-rollback-segments 128 1876 innodb-sort-buffer-size 1048576 1877 innodb-spin-wait-delay 6 1878 innodb-stats-auto-recalc TRUE 1879 innodb-stats-method nulls_equal 1880 innodb-stats-on-metadata FALSE 1881 innodb-stats-persistent TRUE 1882 innodb-stats-persistent-sample-pages 20 1883 innodb-stats-sample-pages 8 1884 innodb-stats-transient-sample-pages 8 1885 innodb-status-file FALSE 1886 innodb-status-output FALSE 1887 innodb-status-output-locks FALSE 1888 innodb-strict-mode TRUE 1889 innodb-support-xa TRUE 1890 innodb-sync-array-size 1 1891 innodb-sync-spin-loops 30 1892 innodb-table-locks TRUE 1893 innodb-temp-data-file-path (No default value) 1894 innodb-thread-concurrency 0 1895 innodb-thread-sleep-delay 10000 1896 innodb-tmpdir (No default value) 1897 innodb-undo-directory (No default value) 1898 innodb-undo-log-truncate FALSE 1899 innodb-undo-logs 128 1900 innodb-undo-tablespaces 0 1901 innodb-use-native-aio TRUE 1902 innodb-write-io-threads 4 1903 interactive-timeout 28800 1904 internal-tmp-disk-storage-engine InnoDB 1905 join-buffer-size 262144 1906 keep-files-on-create FALSE 1907 key-buffer-size 8388608 1908 key-cache-age-threshold 300 1909 key-cache-block-size 1024 1910 key-cache-division-limit 100 1911 language F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64share 1912 lc-messages en_US 1913 lc-messages-dir F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64share 1914 lc-time-names en_US 1915 local-infile TRUE 1916 lock-wait-timeout 31536000 1917 log-bin (No default value) 1918 log-bin-index (No default value) 1919 log-bin-trust-function-creators FALSE 1920 log-bin-use-v1-row-events FALSE 1921 log-builtin-as-identified-by-password FALSE 1922 log-error stderr 1923 log-error-verbosity 1 1924 log-isam myisam.log 1925 log-output FILE 1926 log-queries-not-using-indexes FALSE 1927 log-raw FALSE 1928 log-short-format FALSE 1929 log-slave-updates FALSE 1930 log-slow-admin-statements FALSE 1931 log-slow-slave-statements FALSE 1932 log-statements-unsafe-for-binlog TRUE 1933 log-syslog TRUE 1934 log-syslog-tag 1935 log-tc tc.log 1936 log-tc-size 24576 1937 log-throttle-queries-not-using-indexes 0 1938 log-timestamps UTC 1939 log-warnings 0 1940 long-query-time 10 1941 low-priority-updates FALSE 1942 lower-case-table-names 1 1943 master-info-file master.info 1944 master-info-repository FILE 1945 master-retry-count 86400 1946 master-verify-checksum FALSE 1947 max-allowed-packet 4194304 1948 max-binlog-cache-size 18446744073709547520 1949 max-binlog-dump-events 0 1950 max-binlog-size 1073741824 1951 max-binlog-stmt-cache-size 18446744073709547520 1952 max-connect-errors 100 1953 max-connections 151 1954 max-delayed-threads 20 1955 max-digest-length 1024 1956 max-error-count 64 1957 max-execution-time 0 1958 max-heap-table-size 16777216 1959 max-join-size 18446744073709551615 1960 max-length-for-sort-data 1024 1961 max-points-in-geometry 65536 1962 max-prepared-stmt-count 16382 1963 max-relay-log-size 0 1964 max-seeks-for-key 4294967295 1965 max-sort-length 1024 1966 max-sp-recursion-depth 0 1967 max-tmp-tables 32 1968 max-user-connections 0 1969 max-write-lock-count 4294967295 1970 memlock FALSE 1971 metadata-locks-cache-size 1024 1972 metadata-locks-hash-instances 8 1973 min-examined-row-limit 0 1974 multi-range-count 256 1975 myisam-block-size 1024 1976 myisam-data-pointer-size 6 1977 myisam-max-sort-file-size 2146435072 1978 myisam-mmap-size 18446744073709551615 1979 myisam-recover-options OFF 1980 myisam-repair-threads 1 1981 myisam-sort-buffer-size 8388608 1982 myisam-stats-method nulls_unequal 1983 myisam-use-mmap FALSE 1984 mysql-native-password-proxy-users FALSE 1985 named-pipe FALSE 1986 net-buffer-length 16384 1987 net-read-timeout 30 1988 net-retry-count 10 1989 net-write-timeout 60 1990 new FALSE 1991 ngram ON 1992 ngram-token-size 2 1993 offline-mode FALSE 1994 old FALSE 1995 old-alter-table FALSE 1996 old-passwords 0 1997 old-style-user-limits FALSE 1998 open-files-limit 7048 1999 optimizer-prune-level 1 2000 optimizer-search-depth 62 2001 optimizer-switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on 2002 optimizer-trace 2003 optimizer-trace-features greedy_search=on,range_optimizer=on,dynamic_range=on,repeated_subselect=on 2004 optimizer-trace-limit 1 2005 optimizer-trace-max-mem-size 16384 2006 optimizer-trace-offset -1 2007 parser-max-mem-size 18446744073709551615 2008 partition ON 2009 performance-schema TRUE 2010 performance-schema-accounts-size -1 2011 performance-schema-consumer-events-stages-current FALSE 2012 performance-schema-consumer-events-stages-history FALSE 2013 performance-schema-consumer-events-stages-history-long FALSE 2014 performance-schema-consumer-events-statements-current TRUE 2015 performance-schema-consumer-events-statements-history TRUE 2016 performance-schema-consumer-events-statements-history-long FALSE 2017 performance-schema-consumer-events-transactions-current FALSE 2018 performance-schema-consumer-events-transactions-history FALSE 2019 performance-schema-consumer-events-transactions-history-long FALSE 2020 performance-schema-consumer-events-waits-current FALSE 2021 performance-schema-consumer-events-waits-history FALSE 2022 performance-schema-consumer-events-waits-history-long FALSE 2023 performance-schema-consumer-global-instrumentation TRUE 2024 performance-schema-consumer-statements-digest TRUE 2025 performance-schema-consumer-thread-instrumentation TRUE 2026 performance-schema-digests-size -1 2027 performance-schema-events-stages-history-long-size -1 2028 performance-schema-events-stages-history-size -1 2029 performance-schema-events-statements-history-long-size -1 2030 performance-schema-events-statements-history-size -1 2031 performance-schema-events-transactions-history-long-size -1 2032 performance-schema-events-transactions-history-size -1 2033 performance-schema-events-waits-history-long-size -1 2034 performance-schema-events-waits-history-size -1 2035 performance-schema-hosts-size -1 2036 performance-schema-instrument 2037 performance-schema-max-cond-classes 80 2038 performance-schema-max-cond-instances -1 2039 performance-schema-max-digest-length 1024 2040 performance-schema-max-file-classes 80 2041 performance-schema-max-file-handles 32768 2042 performance-schema-max-file-instances -1 2043 performance-schema-max-index-stat -1 2044 performance-schema-max-memory-classes 320 2045 performance-schema-max-metadata-locks -1 2046 performance-schema-max-mutex-classes 200 2047 performance-schema-max-mutex-instances -1 2048 performance-schema-max-prepared-statements-instances -1 2049 performance-schema-max-program-instances -1 2050 performance-schema-max-rwlock-classes 40 2051 performance-schema-max-rwlock-instances -1 2052 performance-schema-max-socket-classes 10 2053 performance-schema-max-socket-instances -1 2054 performance-schema-max-sql-text-length 1024 2055 performance-schema-max-stage-classes 150 2056 performance-schema-max-statement-classes 193 2057 performance-schema-max-statement-stack 10 2058 performance-schema-max-table-handles -1 2059 performance-schema-max-table-instances -1 2060 performance-schema-max-table-lock-stat -1 2061 performance-schema-max-thread-classes 50 2062 performance-schema-max-thread-instances -1 2063 performance-schema-session-connect-attrs-size -1 2064 performance-schema-setup-actors-size -1 2065 performance-schema-setup-objects-size -1 2066 performance-schema-users-size -1 2067 pid-file F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64dataTY1035.pid 2068 plugin-dir F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64libplugin 2069 port 3306 2070 port-open-timeout 0 2071 preload-buffer-size 32768 2072 profiling-history-size 15 2073 query-alloc-block-size 8192 2074 query-cache-limit 1048576 2075 query-cache-min-res-unit 4096 2076 query-cache-size 1048576 2077 query-cache-type OFF 2078 query-cache-wlock-invalidate FALSE 2079 query-prealloc-size 8192 2080 range-alloc-block-size 4096 2081 range-optimizer-max-mem-size 8388608 2082 read-buffer-size 131072 2083 read-only FALSE 2084 read-rnd-buffer-size 262144 2085 relay-log (No default value) 2086 relay-log-index (No default value) 2087 relay-log-info-file relay-log.info 2088 relay-log-info-repository FILE 2089 relay-log-purge TRUE 2090 relay-log-recovery FALSE 2091 relay-log-space-limit 0 2092 replicate-same-server-id FALSE 2093 report-host (No default value) 2094 report-password (No default value) 2095 report-port 0 2096 report-user (No default value) 2097 require-secure-transport FALSE 2098 rpl-stop-slave-timeout 31536000 2099 safe-user-create FALSE 2100 secure-auth TRUE 2101 secure-file-priv 2102 server-id 0 2103 server-id-bits 32 2104 session-track-gtids OFF 2105 session-track-schema TRUE 2106 session-track-state-change FALSE 2107 session-track-system-variables time_zone,autocommit,character_set_client,character_set_results,character_set_connection 2108 session-track-transaction-info OFF 2109 sha256-password-proxy-users FALSE 2110 shared-memory FALSE 2111 shared-memory-base-name MYSQL 2112 show-compatibility-56 FALSE 2113 show-old-temporals FALSE 2114 show-slave-auth-info FALSE 2115 skip-grant-tables FALSE 2116 skip-name-resolve FALSE 2117 skip-networking FALSE 2118 skip-show-database FALSE 2119 skip-slave-start FALSE 2120 slave-allow-batching FALSE 2121 slave-checkpoint-group 512 2122 slave-checkpoint-period 300 2123 slave-compressed-protocol FALSE 2124 slave-exec-mode STRICT 2125 slave-load-tmpdir C:UsersADMINI~1AppDataLocalTemp 2126 slave-max-allowed-packet 1073741824 2127 slave-net-timeout 60 2128 slave-parallel-type DATABASE 2129 slave-parallel-workers 0 2130 slave-pending-jobs-size-max 16777216 2131 slave-preserve-commit-order FALSE 2132 slave-rows-search-algorithms TABLE_SCAN,INDEX_SCAN 2133 slave-skip-errors (No default value) 2134 slave-sql-verify-checksum TRUE 2135 slave-transaction-retries 10 2136 slave-type-conversions 2137 slow-launch-time 2 2138 slow-query-log FALSE 2139 slow-query-log-file F: emp20160708mysql-5.7.13-winx64mysql-5.7.13-winx64dataTY1035-slow.log 2140 slow-start-timeout 15000 2141 socket MySQL 2142 sort-buffer-size 262144 2143 sporadic-binlog-dump-fail FALSE 2144 sql-mode ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 2145 ssl TRUE 2146 ssl-ca (No default value) 2147 ssl-capath (No default value) 2148 ssl-cert (No default value) 2149 ssl-cipher (No default value) 2150 ssl-crl (No default value) 2151 ssl-crlpath (No default value) 2152 ssl-key (No default value) 2153 stored-program-cache 256 2154 super-read-only FALSE 2155 symbolic-links TRUE 2156 sync-binlog 1 2157 sync-frm TRUE 2158 sync-master-info 10000 2159 sync-relay-log 10000 2160 sync-relay-log-info 10000 2161 sysdate-is-now FALSE 2162 table-definition-cache 1400 2163 table-open-cache 2000 2164 table-open-cache-instances 16 2165 tc-heuristic-recover OFF 2166 temp-pool FALSE 2167 thread-cache-size 9 2168 thread-handling one-thread-per-connection 2169 thread-stack 262144 2170 time-format %H:%i:%s 2171 tls-version TLSv1,TLSv1.1 2172 tmp-table-size 16777216 2173 tmpdir C:UsersADMINI~1AppDataLocalTemp 2174 transaction-alloc-block-size 8192 2175 transaction-isolation REPEATABLE-READ 2176 transaction-prealloc-size 4096 2177 transaction-read-only FALSE 2178 transaction-write-set-extraction OFF 2179 updatable-views-with-limit YES 2180 validate-user-plugins TRUE 2181 verbose TRUE 2182 wait-timeout 28800 2183 2184 To see what values a running MySQL server is using, type 2185 'mysqladmin variables' instead of 'mysqld --verbose --help'.
mysql命令参数详解
1 mysql Ver 14.14 Distrib 5.7.13, for Win64 (x86_64) 2 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. 3 4 Oracle is a registered trademark of Oracle Corporation and/or its 5 affiliates. Other names may be trademarks of their respective 6 owners. 7 8 Usage: mysql [OPTIONS] [database] 9 -?, --help Display this help and exit. 10 -I, --help Synonym for -? 11 --auto-rehash Enable automatic rehashing. One doesn't need to use 12 'rehash' to get table and field completion, but startup 13 and reconnecting may take a longer time. Disable with 14 --disable-auto-rehash. 15 (Defaults to on; use --skip-auto-rehash to disable.) 16 -A, --no-auto-rehash 17 No automatic rehashing. One has to use 'rehash' to get 18 table and field completion. This gives a quicker start of 19 mysql and disables rehashing on reconnect. 20 --auto-vertical-output 21 Automatically switch to vertical output mode if the 22 result is wider than the terminal width. 23 -B, --batch Don't use history file. Disable interactive behavior. 24 (Enables --silent.) 25 --bind-address=name IP address to bind to. 26 --character-sets-dir=name 27 Directory for character set files. 28 --column-type-info Display column type information. 29 -c, --comments Preserve comments. Send comments to the server. The 30 default is --skip-comments (discard comments), enable 31 with --comments. 32 -C, --compress Use compression in server/client protocol. 33 -#, --debug[=#] This is a non-debug version. Catch this and exit. 34 --debug-check This is a non-debug version. Catch this and exit. 35 -T, --debug-info This is a non-debug version. Catch this and exit. 36 -D, --database=name Database to use. 37 --default-character-set=name 38 Set the default character set. 39 --delimiter=name Delimiter to be used. 40 --enable-cleartext-plugin 41 Enable/disable the clear text authentication plugin. 42 -e, --execute=name Execute command and quit. (Disables --force and history 43 file.) 44 -E, --vertical Print the output of a query (rows) vertically. 45 -f, --force Continue even if we get an SQL error. 46 --histignore=name A colon-separated list of patterns to keep statements 47 from getting logged into syslog and mysql history. 48 -G, --named-commands 49 Enable named commands. Named commands mean this program's 50 internal commands; see mysql> help . When enabled, the 51 named commands can be used from any line of the query, 52 otherwise only from the first line, before an enter. 53 Disable with --disable-named-commands. This option is 54 disabled by default. 55 -i, --ignore-spaces Ignore space after function names. 56 --init-command=name SQL Command to execute when connecting to MySQL server. 57 Will automatically be re-executed when reconnecting. 58 --local-infile Enable/disable LOAD DATA LOCAL INFILE. 59 -b, --no-beep Turn off beep on error. 60 -h, --host=name Connect to host. 61 -H, --html Produce HTML output. 62 -X, --xml Produce XML output. 63 --line-numbers Write line numbers for errors. 64 (Defaults to on; use --skip-line-numbers to disable.) 65 -L, --skip-line-numbers 66 Don't write line number for errors. 67 -n, --unbuffered Flush buffer after each query. 68 --column-names Write column names in results. 69 (Defaults to on; use --skip-column-names to disable.) 70 -N, --skip-column-names 71 Don't write column names in results. 72 --sigint-ignore Ignore SIGINT (CTRL-C). 73 -o, --one-database Ignore statements except those that occur while the 74 default database is the one named at the command line. 75 -p, --password[=name] 76 Password to use when connecting to server. If password is 77 not given it's asked from the tty. 78 -W, --pipe Use named pipes to connect to server. 79 -P, --port=# Port number to use for connection or 0 for default to, in 80 order of preference, my.cnf, $MYSQL_TCP_PORT, 81 /etc/services, built-in default (3306). 82 --prompt=name Set the mysql prompt to this value. 83 --protocol=name The protocol to use for connection (tcp, socket, pipe, 84 memory). 85 -q, --quick Don't cache result, print it row by row. This may slow 86 down the server if the output is suspended. Doesn't use 87 history file. 88 -r, --raw Write fields without conversion. Used with --batch. 89 --reconnect Reconnect if the connection is lost. Disable with 90 --disable-reconnect. This option is enabled by default. 91 (Defaults to on; use --skip-reconnect to disable.) 92 -s, --silent Be more silent. Print results with a tab as separator, 93 each row on new line. 94 --shared-memory-base-name=name 95 Base name of shared memory. 96 -S, --socket=name The socket file to use for connection. 97 --ssl-mode=name SSL connection mode. 98 --ssl Deprecated. Use --ssl-mode instead. 99 (Defaults to on; use --skip-ssl to disable.) 100 --ssl-verify-server-cert 101 Deprecated. Use --ssl-mode=VERIFY_IDENTITY instead. 102 --ssl-ca=name CA file in PEM format. 103 --ssl-capath=name CA directory. 104 --ssl-cert=name X509 cert in PEM format. 105 --ssl-cipher=name SSL cipher to use. 106 --ssl-key=name X509 key in PEM format. 107 --ssl-crl=name Certificate revocation list. 108 --ssl-crlpath=name Certificate revocation list path. 109 --tls-version=name TLS version to use, permitted values are: TLSv1, TLSv1.1 110 -t, --table Output in table format. 111 --tee=name Append everything into outfile. See interactive help (h) 112 also. Does not work in batch mode. Disable with 113 --disable-tee. This option is disabled by default. 114 -u, --user=name User for login if not current user. 115 -U, --safe-updates Only allow UPDATE and DELETE that uses keys. 116 -U, --i-am-a-dummy Synonym for option --safe-updates, -U. 117 -v, --verbose Write more. (-v -v -v gives the table output format). 118 -V, --version Output version information and exit. 119 -w, --wait Wait and retry if connection is down. 120 --connect-timeout=# Number of seconds before connection timeout. 121 --max-allowed-packet=# 122 The maximum packet length to send to or receive from 123 server. 124 --net-buffer-length=# 125 The buffer size for TCP/IP and socket communication. 126 --select-limit=# Automatic limit for SELECT when using --safe-updates. 127 --max-join-size=# Automatic limit for rows in a join when using 128 --safe-updates. 129 --secure-auth Refuse client connecting to server if it uses old 130 (pre-4.1.1) protocol. Deprecated. Always TRUE 131 --server-arg=name Send embedded server this as a parameter. 132 --show-warnings Show warnings after every statement. 133 -j, --syslog Log filtered interactive commands to syslog. Filtering of 134 commands depends on the patterns supplied via histignore 135 option besides the default patterns. 136 --plugin-dir=name Directory for client-side plugins. 137 --default-auth=name Default authentication client-side plugin to use. 138 --binary-mode By default, ASCII '