Home  >  Article  >  Database  >  What is the use of mysql command in Linux?

What is the use of mysql command in Linux?

WBOY
WBOYforward
2023-05-27 20:42:421228browse

Linux common commandsmysql command is a client tool for the MySQL database server. It works in the command line terminal to complete operations on the remote MySQL database server.

What is the use of mysql command in Linux?

mysql

MySQL Server Client Tool

Syntax

 mysql(选项)(参数)

Options

 -h:MySQL服务器的ip地址或主机名; -u:连接MySQL服务器的用户名; -e:执行mysql内部命令; -p:连接MySQL服务器的密码。

Parameters

Database: Specify the database to be opened automatically after connecting to the server.

The above is the detailed content of What is the use of mysql command in Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete