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.
MySQL Server Client Tool
mysql(选项)(参数)
-h:MySQL服务器的ip地址或主机名; -u:连接MySQL服务器的用户名; -e:执行mysql内部命令; -p:连接MySQL服务器的密码。
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!