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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Chintan RathodRank #516 · 4.8K reputationPosted Dec 28, 2011, 7:55 AM EST
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.