OS Manuals

/usr/bin/mysqlshow

The MariaDB open source relational database

From mariadb-13.1 13.1.1-r2 (os), captured 2026-11-05 by running mysqlshow --help (exit 0). permalink

/usr/bin/mysqlshow: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb-show' instead
/usr/bin/mysqlshow from 13.1.1-MariaDB, client 9.10 for Linux (x86_64)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Shows the structure of a MariaDB database (databases, tables, and columns).

Usage: /usr/bin/mysqlshow [OPTIONS] [database [table [column]]]

If last argument contains a shell or SQL wildcard (*,?,% or _) then only
what's matched by the wildcard is shown.
If no database is given then all matching databases are shown.
If no table is given, then all matching tables in database are shown.
If no column is given, then all matching columns and column types in table
are shown.

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
The following groups are read: mysqlshow mariadb-show client client-server client-mariadb
The following options may be given as the first argument:
--print-defaults          Print the program argument list and exit.
--no-defaults             Don't read default options from any option file.
The following specify which files/extra groups are read (specified before remaining options):
--defaults-file=#         Only read default options from the given file #.
--defaults-extra-file=#   Read this file after the global files are read.
--defaults-group-suffix=# Additionally read default groups with # appended as a suffix.

  -c, --character-sets-dir=name
                      Directory for character set files.
  --default-character-set=name
                      Set the default character set.
  --count             Show number of rows per table (may be slow for non-MyISAM
                      tables).
  -C, --compress      Use compression in server/client protocol.
  -#, --debug[=name]  Output debug log. Often this is 'd:t:o,filename'.
  --debug-check       Check memory and open file usage at exit.
  --debug-info        Print some debug info at exit.
  --default-auth=name Default authentication client-side plugin to use.
  -?, --help          Display this help and exit.
  -h, --host=name     Connect to host. Defaults in the following order:
                      $MARIADB_HOST, and then localhost
  -i, --status        Shows a lot of extra information about each table.
  -k, --keys          Show keys for table.
  -p, --password[=name]
                      Password to use when connecting to server. If password is
                      not given, it's solicited on the tty.
  --plugin-dir=name   Directory for client-side plugins.
  -P, --port=#        Port number to use for connection or 0 for default to, in
                      order of preference, my.cnf, $MYSQL_TCP_PORT,
                      /etc/services, built-in default (3306).
  --protocol=name     The protocol to use for connection (tcp, socket, pipe).
  -t, --show-table-type
                      Show table type column.
  -S, --socket=name   The socket file to use for connection.
  --ssl               Enable SSL for connection (automatically enabled with
                      other flags).
                      (Defaults to on; use --skip-ssl to disable.)
  --ssl-ca=name       CA file in PEM format (check OpenSSL docs, implies
                      --ssl).
  --ssl-capath=name   CA directory (check OpenSSL docs, implies --ssl).
  --ssl-cert=name     X509 cert in PEM format (implies --ssl).
  --ssl-cipher=name   SSL cipher to use (implies --ssl).
  --ssl-key=name      X509 key in PEM format (implies --ssl).
  --ssl-crl=name      Certificate revocation list (implies --ssl).
  --ssl-crlpath=name  Certificate revocation list path (implies --ssl).
  --tls-version=name  TLS protocol version for secure connection.
  --ssl-fp=name       Server certificate fingerprint (implies --ssl).
  --ssl-fplist=name   File with accepted server certificate fingerprints, one
                      per line (implies --ssl).
  --ssl-verify-server-cert
                      Verify server's certificate to prevent man-in-the-middle
                      attacks
                      (Defaults to on; use --skip-ssl-verify-server-cert to disable.)
  -u, --user=name     User for login if not current user.
  -v, --verbose       More verbose output; you can use this multiple times to
                      get even more verbose output.
  -V, --version       Output version information and exit.

Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)
--------------------------------- ----------------------------------------
character-sets-dir                (No default value)
default-character-set             auto
count                             FALSE
compress                          FALSE
debug-check                       FALSE
debug-info                        FALSE
default-auth                      (No default value)
host                              (No default value)
status                            FALSE
keys                              FALSE
plugin-dir                        (No default value)
port                              0
show-table-type                   FALSE
socket                            (No default value)
ssl                               TRUE
ssl-ca                            (No default value)
ssl-capath                        (No default value)
ssl-cert                          (No default value)
ssl-cipher                        (No default value)
ssl-key                           (No default value)
ssl-crl                           (No default value)
ssl-crlpath                       (No default value)
tls-version                       (No default value)
ssl-fp                            (No default value)
ssl-fplist                        (No default value)
ssl-verify-server-cert            TRUE
user                              (No default value)
Options (36)
OptionDescriptionSource
--print-defaultsPrint the program argument list and exit.help
--no-defaultsDon't read default options from any option file.help
--defaults-file #Only read default options from the given file #.help
--defaults-extra-file #Read this file after the global files are read.help
-c, --character-sets-dir nameDirectory for character set files.help
--default-character-set nameSet the default character set.help
--countShow number of rows per table (may be slow for non-MyISAM tables).help
-C, --compressUse compression in server/client protocol.help
-#, --debug nameOutput debug log.help
--debug-checkCheck memory and open file usage at exit.help
--debug-infoPrint some debug info at exit.help
-?, --helpDisplay this help and exit.help
-h, --host nameConnect to host.help
-i, --statusShows a lot of extra information about each table.help
-k, --keysShow keys for table.help
-p, --password namePassword to use when connecting to server.help
--plugin-dir nameDirectory for client-side plugins.help
-P, --port #Port number to use for connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default (3306).help
--protocol nameThe protocol to use for connection (tcp, socket, pipe).help
-t, --show-table-typeShow table type column.help
-S, --socket nameThe socket file to use for connection.help
--sslEnable SSL for connection (automatically enabled with other flags).help
--ssl-ca nameCA file in PEM format (check OpenSSL docs, implieshelp
--ssl-capath nameCA directory (check OpenSSL docs, implies --ssl).help
--ssl-cert nameX509 cert in PEM format (implies --ssl).help
--ssl-cipher nameSSL cipher to use (implies --ssl).help
--ssl-key nameX509 key in PEM format (implies --ssl).help
--ssl-crl nameCertificate revocation list (implies --ssl).help
--ssl-crlpath nameCertificate revocation list path (implies --ssl).help
--tls-version nameTLS protocol version for secure connection.help
--ssl-fp nameServer certificate fingerprint (implies --ssl).help
--ssl-fplist nameFile with accepted server certificate fingerprints, one per line (implies --ssl).help
--ssl-verify-server-certVerify server's certificate to prevent man-in-the-middle attacks (Defaults to on;help
-u, --user nameUser for login if not current user.help
-v, --verboseMore verbose output;help
-V, --versionOutput version information and exit.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.