Mysqladmin-help command Where command is a one or more of: (Commands may be shortened)
Create databasename Create a new database
Debug Instruct server to write debug information to log
Drop databasename Delete a database and all its tables
Extended-status Gives an extended status message from the server
Flush-hosts Flush all cached hosts
Flush-logs Flush all logs
Flush-status Clear status variables
Flush-tables Flush all tables
Flush-threads Flush the thread cache
Flush-privileges Reload grant tables (same as reload)
Kill id, id,... Kill mysql threads
Password new-password Change old password to new-password, MySQL 4.1 hashing.
Old-password new-password Change old password to new-password in old format.
Ping Check if mysqld is alive
Processlist Show list of active threads in server
Reload Reload grant tables
Refresh Flush all tables and close and open logfiles
Shutdown Take server down
Status Gives a short status message from the server
Mysqladmin can only shut down, not restart/start
* In Windows, you cannot directly restart (restart). you can only stop the instance and start it again.
-----------------------------------------------------------
D:/MySQL 5.1.73/bin> mysqladmin-help
Mysqladmin Ver 8.42 Distrib 5.1.73, for Win64 on unknown
Copyright (c) 2000,201 3, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
Affiliates. Other names may be trademarks of their respective
Owners.
Administration program for the mysqld daemon.
Usage: mysqladmin [OPTIONS] command ....
-C, -- count = # Number of iterations to make. This works with-I
(-- Sleep) only.
-- Debug-check memory and open file usage at exit.
-- Debug-info Print some debug info at exit.
-F, -- force Don't ask for confirmation on drop database;
Multiple commands, continue even if an error occurs.
-C, -- compress Use compression in server/client protocol.
-- Character-sets-dir = name
Directory for character set files.
-- Default-character-set = name
Set the default character set.
-?, -- Help Display this help and exit.
-H, -- host = name Connect to host.
-B, -- no-beep Turn off beep on error.
-P, -- password [= name]
Password to use when connecting to server. If password is
Not given it's asked from the tty.
-W, -- pipe Use named pipes to connect to server.
-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,
Memory ).
-R, -- relative Show difference between current and previous values when
Used with-I. Currently only works with extended-status.
-O, -- set-variable = name
Change the value of a variable. Please note that this
Option is deprecated; you can set variables directly
-- Variable-name = value.
-- Shared-memory-base-name = name
Base name of shared memory.
-S, -- silent Silently exit if one can't connect to server.
-S, -- socket = name The socket file to use for connection.
-I, -- sleep = # Execute commands repeatedly with a sleep.
-- Ssl Enable SSL for connection (automatically enabled
Other flags). Disable with -- skip-ssl.
-- 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-verify-server-cert
Verify server's "Common Name" in its cert against
Hostname used when connecting. This option is disabled
Default.
-U, -- user = name User for login if not current user.
-V, -- verbose Write more information.
-V, -- version Output version information and exit.
-E, -- vertical Print output vertically. Is similar to -- relative,
Prints output vertically.
-W, -- wait [= #] Wait and retry if connection is down.
-- Connect_timeout = #
-- Shutdown_timeout = #
Variables (-- variable-name = value)
And boolean options {FALSE | TRUE} Value (after reading options)
--------------------------------------------------------------
Count 0
Debug-check FALSE
Debug-info FALSE
Force FALSE
Compress FALSE
Character-sets-dir (No default value)
Default-character-set utf8
Host elp
No-beep FALSE
Port 3306
Relative FALSE
Shared-memory-base-name (No default value)
Socket MySQL
Sleep 0
Ssl FALSE
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-verify-server-cert FALSE
User (No default value)
Verbose FALSE
Vertical FALSE
Connect_timeout 43200
Shutdown_timeout 3600
Default options are read from the following files in the given order:
C:/Windows/my. ini C:/Windows/my. cnf C:/my. ini C:/my. cnf D:/MySQL 5.1.73/my. ini D
:/MySQL 5.1.73/my. cnf
The following groups are read: mysqladmin client
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.
-- Defaults-file = # Only read default options from the given file #.
-- Defaults-extra-file = # Read this file after the global files are read.
Where command is a one or more of: (Commands may be shortened)
Create databasename Create a new database
Debug Instruct server to write debug information to log
Drop databasename Delete a database and all its tables
Extended-status Gives an extended status message from the server
Flush-hosts Flush all cached hosts
Flush-logs Flush all logs
Flush-status Clear status variables
Flush-tables Flush all tables
Flush-threads Flush the thread cache
Flush-privileges Reload grant tables (same as reload)
Kill id, id,... Kill mysql threads
Password new-password Change old password to new-password, MySQL 4.1 hashing.
Old-password new-password Change old password to new-password in old format.
Ping Check if mysqld is alive
Processlist Show list of active threads in server
Reload Reload grant tables
Refresh Flush all tables and close and open logfiles
Shutdown Take server down
Status Gives a short status message from the server
Start-slave Start slave
Stop-slave Stop slave
Variables Prints variables available
Version Get version info from server
D:/MySQL 5.1.73/bin> ^