Linux Command
mysql
MySQL server client tools
Supplementary instructions
mysql 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.
grammar
mysql(options)(parameters)
Options
-h: The IP address or host name of the MySQL server;
-u: Username to connect to the MySQL server;
-e: Execute mysql internal commands;
-p: Password to connect to the MySQL server.
Parameters
Database: Specify the database to be opened automatically after connecting to the server.


