MySQL Client Programs

There are 7 client programs, which are listed below −

  • mysql

  • mysqladmin

  • mysqlcheck

  • mysqldump

  • mysqlimportmysqlpump

  • mysqlshow

  • mysqlslap

Let us understand the MySQL client programs in brief −


The mysql is a simple SQL shell that has input line editing capabilities. It supports interactive and noninteractive usage. When it is used interactively, query results are presented in an ASCII-table format.

It can be invoked from the prompt of the user’s command interpreter. It has been demonstrated below −

shell> mysql db_name


The mysqladmin is a client that helps perform administrative operations. It can also be used to check the server's configuration and current status, to create and drop databases, and much more.


The mysqlcheck client performs table maintenance. It checks, repairs, optimizes, or analyses tables.

Every table is locked and hence unavailable to other sessions when it is being processed. But for check operations, the table is locked with a READ lock only.


The mysqldump client utility helps performs logical backups, thereby producing a set of SQL statements which can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL databases for backup or transfer to another SQL server.

The mysqldump command also generates output in CSV, other delimited text, or XML format. The utility mysqldump requires at least the SELECT privilege for dumped tables, SHOW VIEW for dumped views, TRIGGER for dumped triggers, LOCK TABLES if the --single-transaction option is not used, and PROCESS if --no-tablespaces option is not used.


The mysqlimport client comes with a command-line interface that helps with the LOAD DATA SQL statement. Most options to mysqlimport respond directly to clauses of LOAD DATA syntax


Let us understand the features of mysqlpump

  • Parallel processing of databases, as well as that of objects within databases, thereby helping speed up the dump process.

  • It provides better control over which databases and database objects (tables, stored programs, user accounts) need to be dumped

  • Dumping of user accounts as account-management statements (CREATE USER, GRANT) instead of as inserts into the mysql system database


The mysqlshow client can be used to see what databases exist, their tables, or a table's columns or indexes. It provides a command-line interface for several SQL SHOW statements.


The mysqlslap utility is a diagnostic program that has designed to emulate client load for a MySQL server and report the timing of every stage. It works as though multiple clients are accessing the server.

Updated on: 10-Mar-2021

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started