Options for mysqladmin in MariaDB Enterprise Server 10.2

Overview

Option

Description

--character-sets-dir

Directory for character set files.

--compress (-C)

Use compression in server/client protocol.

--connect-timeout

Number of seconds before connection timeout.

--count (-c)

Number of iterations to make. This works with -i (--sleep) only.

--debug-check

Check memory and open file usage at exit.

--debug-info

Print some debug info at exit.

--default-auth

Default authentication client-side plugin to use.

--default-character-set

Set the default character set.

--defaults-extra-file

Read this file after the global files are read.

--defaults-file

Only read default options from the given file #.

--defaults-group-suffix

Additionally read default groups with # appended as a suffix.

--force (-f)

Don't ask for confirmation on drop database; with multiple commands, continue even if an error occurs.

--help (-?)

Display this help and exit.

--host (-h)

Connect to host.

--local (-l)

Local command, don't write to binlog.

--no-beep (-b)

Turn off beep on error.

--no-defaults

Don't read default options from any option file.

--password (-p)

Password to use when connecting to server. If password is not given it's asked from the tty.

--plugin-dir

Directory for client-side plugins.

--port (-P)

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).

--print-defaults

Print the program argument list and exit.

--protocol

The protocol to use for connection (tcp, socket, pipe, memory).

--relative (-r)

Show difference between current and previous values when used with -i. Currently only works with extended-status.

--shutdown-timeout

The maximum number of seconds to wait during a shutdown.

--silent (-s)

Silently exit if one can't connect to server.

--sleep (-i)

Execute commands repeatedly with a sleep between.

--socket (-S)

The socket file to use for connection.

--ssl

Enable SSL for connection (automatically enabled with other flags).

--ssl-ca

CA file in PEM format (check OpenSSL docs, implies --ssl).

--ssl-capath

CA directory (check OpenSSL docs, implies --ssl).

--ssl-cert

X509 cert in PEM format (implies --ssl).

--ssl-cipher

SSL cipher to use (implies --ssl).

--ssl-crl

Certificate revocation list (implies --ssl).

--ssl-crlpath

Certificate revocation list path (implies --ssl).

--ssl-key

X509 key in PEM format (implies --ssl).

--ssl-verify-server-cert

Verify server's "Common Name" in its cert against hostname used when connecting. This option is disabled by default.

--user (-u)

User for login if not current user.

--verbose (-v)

Write more information.

--version (-V)

Output version information and exit.

--vertical (-E)

Print output vertically. Is similar to --relative, but prints output vertically.

--wait (-w)

Wait and retry if connection is down.