Hi,
what is the role of mysqladmin in mysql server?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chintan RathodPosted Dec 28, 2011, 12:55 PM
mysqladmin is a client for performing administrative operations. You can use it to check the server's configuration and current status, to create and drop databases, and more..
mysqladmin supports the following commands. Some of the commands take an argument following the command name.
CommandMeaning
create db_nameCreate a new database named
db_name.debugTell the server to write debug information to the error log.
drop db_nameDelete the database named
db_nameand all its tables.extended-statusDisplay the server status variables and their values.
flush-hostsFlush all information in the host cache.
flush-logsFlush all logs.
flush-privilegesReload the grant tables
flush-statusClear status variables.
flush-tablesFlush all tables.
flush-threadsFlush the thread cache.
kill id,id,...Kill server threads. If multiple thread ID values are given, there must be no spaces in the list.
old-password new-passwordThis is like the
passwordcommand but stores the password using the old password-hashing format.password new-passwordSet a new password. This changes the password to
new-passwordfor the account that you use with mysqladmin for connecting to the server.PingCheck whether the server is available.
ProcesslistShow a list of active server threads.
ReloadReload the grant tables.
RefreshFlush all tables and close and open log files.
ShutdownStop the server.
start-slaveStart replication on a slave server.
StatusDisplay a short server status message.
stop-slaveStop replication on a slave server.
VariablesDisplay the server system variables and their values.
VersionDisplay version information from the server.