Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between mysql, mysqladmin, mysqld [closed]

Can someone give me a clear explanation of the differences between mysql (command line tool), mysqladmin (client tool for performing administrative tasks) and mysqld (mysql server).

like image 295
Preom Avatar asked Mar 02 '14 20:03

Preom


People also ask

What is difference between MySQL and mysqld?

mysqld is the server executable (one of them) mysql is the command line client. mysqladmin is a maintainance or administrative utility.

What is Mysqladmin MySQL?

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. Invoke mysqladmin like this: mysqladmin [options] command [command-arg] [command [command-arg]] ... mysqladmin supports the following commands.

What does mysqld command do?

mysqld, also known as MySQL Server, is a single multithreaded program that does most of the work in a MySQL installation. It does not spawn additional processes. MySQL Server manages access to the MySQL data directory that contains databases and tables.


1 Answers

You could easily find that out yourself by just reading the man pages about the three commands:

  • mysqld is the server executable (one of them)
  • mysql is the command line client
  • mysqladmin is a maintainance or administrative utility

They serve different purposes. There is not simply a "difference" between them. For different task you have different utilities. Just like you use a screwdriver for a screw and a hammer for a nail.

If you want to query a database server you need to connect to it using a client. The client connects to the server which serves the mysql service. If you need to do administrative adjustments in the server you need an administration utility.

Typically the server is started and stopped by the operating system it runs on, so at bootup and shutdown times. The clients (there are different types of clients) are started and used by users or programs handling with data inside the server. And the administrative staff uses the administrative tool to administer the servers on their systems.

like image 69
arkascha Avatar answered Oct 03 '22 02:10

arkascha