欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > 数据库 >内容正文

数据库

mysqladmin mysql,mysql,mysqladmin,mysqld之间的区别

发布时间:2024/10/14 数据库 91 豆豆
生活随笔 收集整理的这篇文章主要介绍了 mysqladmin mysql,mysql,mysqladmin,mysqld之间的区别 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

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

解决方案

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.

总结

以上是生活随笔为你收集整理的mysqladmin mysql,mysql,mysqladmin,mysqld之间的区别的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。