Report issue Add example

mysql

MySQL server client tool

Description

The mysql command is a client tool for the MySQL database server. It runs in a command-line terminal to perform operations on local or remote MySQL database servers.

Syntax

mysql [options] [database]

Options

-h: Hostname or IP address of the MySQL server.
-u: Username used to connect to the MySQL server.
-e: Execute a MySQL command and quit.
-p: Password used to connect to the MySQL server.

Parameters

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