MySQL 5.6 Reference Manual
v
3.6.9 Using AUTO_INCREMENT .................................................................................... 260
3.7 Using MySQL with Apache ............................................................................................... 262
4 MySQL Programs ....................................................................................................................... 263
4.1 Overview of MySQL Programs .......................................................................................... 264
4.2 Using MySQL Programs ................................................................................................... 269
4.2.1 Invoking MySQL Programs .................................................................................... 269
4.2.2 Connecting to the MySQL Server ........................................................................... 269
4.2.3 Specifying Program Options ................................................................................... 273
4.2.4 Using Options on the Command Line ..................................................................... 274
4.2.5 Program Option Modifiers ...................................................................................... 275
4.2.6 Using Option Files ................................................................................................. 276
4.2.7 Command-Line Options that Affect Option-File Handling .......................................... 281
4.2.8 Using Options to Set Program Variables ................................................................. 282
4.2.9 Option Defaults, Options Expecting Values, and the = Sign ...................................... 283
4.2.10 Setting Environment Variables .............................................................................. 287
4.3 MySQL Server and Server-Startup Programs ..................................................................... 288
4.3.1 mysqld — The MySQL Server .............................................................................. 288
4.3.2 mysqld_safe — MySQL Server Startup Script ...................................................... 288
4.3.3 mysql.server — MySQL Server Startup Script .................................................... 293
4.3.4 mysqld_multi — Manage Multiple MySQL Servers .............................................. 296
4.4 MySQL Installation-Related Programs ............................................................................... 300
4.4.1 comp_err — Compile MySQL Error Message File .................................................. 300
4.4.2 mysqlbug — Generate Bug Report ....................................................................... 301
4.4.3 mysql_install_db — Initialize MySQL Data Directory ......................................... 301
4.4.4 mysql_plugin — Configure MySQL Server Plugins .............................................. 305
4.4.5 mysql_secure_installation — Improve MySQL Installation Security ................ 307
4.4.6 mysql_tzinfo_to_sql — Load the Time Zone Tables ......................................... 307
4.4.7 mysql_upgrade — Check and Upgrade MySQL Tables ......................................... 308
4.5 MySQL Client Programs ................................................................................................... 314
4.5.1 mysql — The MySQL Command-Line Tool ............................................................ 314
4.5.2 mysqladmin — Client for Administering a MySQL Server ....................................... 338
4.5.3 mysqlcheck — A Table Maintenance Program ...................................................... 347
4.5.4 mysqldump — A Database Backup Program .......................................................... 355
4.5.5 mysqlimport — A Data Import Program ............................................................... 376
4.5.6 mysqlshow — Display Database, Table, and Column Information ............................ 382
4.5.7 mysqlslap — Load Emulation Client .................................................................... 387
4.6 MySQL Administrative and Utility Programs ....................................................................... 395
4.6.1 innochecksum — Offline InnoDB File Checksum Utility .......................................... 395
4.6.2 myisam_ftdump — Display Full-Text Index information .......................................... 396
4.6.3 myisamchk — MyISAM Table-Maintenance Utility .................................................. 397
4.6.4 myisamlog — Display MyISAM Log File Contents .................................................. 414
4.6.5 myisampack — Generate Compressed, Read-Only MyISAM Tables ........................ 415
4.6.6 mysql_config_editor — MySQL Configuration Utility ......................................... 422
4.6.7 mysqlaccess — Client for Checking Access Privileges .......................................... 428
4.6.8 mysqlbinlog — Utility for Processing Binary Log Files .......................................... 431
4.6.9 mysqldumpslow — Summarize Slow Query Log Files ............................................ 452
4.6.10 mysqlhotcopy — A Database Backup Program .................................................. 454
4.6.11 mysql_convert_table_format — Convert Tables to Use a Given Storage
Engine ........................................................................................................................... 457
4.6.12 mysql_find_rows — Extract SQL Statements from Files .................................... 458
4.6.13 mysql_fix_extensions — Normalize Table File Name Extensions ..................... 459
4.6.14 mysql_setpermission — Interactively Set Permissions in Grant Tables .............. 459
4.6.15 mysql_waitpid — Kill Process and Wait for Its Termination ................................ 460
4.6.16 mysql_zap — Kill Processes That Match a Pattern .............................................. 461