JavaScript Editor Source code editor     What Is Ajax 


Main Page

Chapter 8. Client and Utility Programs

Table of Contents

8.1. Overview of Client and Utility Programs
8.2. innochecksum — Offline InnoDB File Checksum Utility
8.3. my_print_defaults — Display Options from Option Files
8.4. myisam_ftdump — Display Full-Text Index information
8.5. myisamchk — MyISAM Table-Maintenance Utility
8.5.1. myisamchk General Options
8.5.2. myisamchk Check Options
8.5.3. myisamchk Repair Options
8.5.4. Other myisamchk Options
8.5.5. myisamchk Memory Usage
8.6. myisamlog — Display MyISAM Log File Contents
8.7. myisampack — Generate Compressed, Read-Only MyISAM Tables
8.8. mysql — The MySQL Command-Line Tool
8.8.1. mysql Options
8.8.2. mysql Commands
8.8.3. mysql Server-Side Help
8.8.4. Executing SQL Statements from a Text File
8.8.5. mysql Tips
8.9. mysqlaccess — Client for Checking Access Privileges
8.10. mysqladmin — Client for Administering a MySQL Server
8.11. mysqlbinlog — Utility for Processing Binary Log Files
8.12. mysqlcheck — A Table Maintenance and Repair Program
8.13. mysqldump — A Database Backup Program
8.14. mysqlhotcopy — A Database Backup Program
8.15. mysqlimport — A Data Import Program
8.16. mysqlmanagerc — Internal Test-Suite Program
8.17. mysqlmanager-pwgen — Internal Test-Suite Program
8.18. mysqlshow — Display Database, Table, and Column Information
8.19. mysql_convert_table_format — Convert Tables to Use a Given Storage Engine
8.20. mysql_explain_log — Use EXPLAIN on Statements in Query Log
8.21. mysql_find_rows — Extract Queries from Update Log
8.22. mysql_fix_extensions — Make Table Filename Extensions Lowercase
8.23. mysql_setpermission — Interactively Set Permissions in Grant Tables
8.24. mysql_tableinfo — Generate Database Metadata
8.25. mysql_waitpid — Kill Process and Wait for Its Termination
8.26. mysql_zap — Kill Processes That Match a Pattern
8.27. perror — Explain Error Codes
8.28. replace — A String-Replacement Utility
8.29. resolveip — Resolve Hostname to IP Address or Vice Versa
8.30. resolve_stack_dump — Resolve Numeric Stack Trace Dump to Symbols

There are many different MySQL client programs that connect to the server to access databases or perform administrative tasks. Other utilities are available as well. These do not establish a client connection with the server but perform MySQL-related operations.

This chapter provides a brief overview of these programs and then a more detailed description of each one. Each program's description indicates its invocation syntax and the options that it understands. See Chapter 4, Using MySQL Programs, for general information on invoking programs and specifying program options.

8.1. Overview of Client and Utility Programs

The following list briefly describes the MySQL client programs and utilities:

MySQL AB also provides a number of GUI tools for administering and otherwise working with MySQL servers. For basic information about these, see Chapter 4, Using MySQL Programs.

Each MySQL program takes many different options. Most programs provide a --help option that you can use to get a full description of the program's different options. For example, try mysql --help.

MySQL client programs that communicate with the server using the MySQL client/server library use the following environment variables:

MYSQL_UNIX_PORTThe default Unix socket file; used for connections to localhost
MYSQL_TCP_PORTThe default port number; used for TCP/IP connections
MYSQL_PWDThe default password
MYSQL_DEBUGDebug trace options when debugging
TMPDIRThe directory where temporary tables and files are created

Use of MYSQL_PWD is insecure. See Section 5.8.6, “Keeping Your Password Secure”.

You can override the default option values or values specified in environment variables for all standard programs by specifying options in an option file or on the command line. See Section 4.3, “Specifying Program Options”.

JavaScript Editor Source code editor     What Is Ajax