mirror of
https://github.com/Estom/notes.git
synced 2026-04-13 11:09:47 +08:00
linux 命令和教程补充
This commit is contained in:
29
Linux/command/mysql.md
Normal file
29
Linux/command/mysql.md
Normal file
@@ -0,0 +1,29 @@
|
||||
mysql
|
||||
===
|
||||
|
||||
MySQL服务器客户端工具
|
||||
|
||||
## 补充说明
|
||||
|
||||
**mysql命令** 是MySQL数据库服务器的客户端工具,它工作在命令行终端中,完成对远程MySQL数据库服务器的操作。
|
||||
|
||||
### 语法
|
||||
|
||||
```shell
|
||||
mysql(选项)(参数)
|
||||
```
|
||||
|
||||
### 选项
|
||||
|
||||
```shell
|
||||
-h:MySQL服务器的ip地址或主机名;
|
||||
-u:连接MySQL服务器的用户名;
|
||||
-e:执行mysql内部命令;
|
||||
-p:连接MySQL服务器的密码。
|
||||
```
|
||||
|
||||
### 参数
|
||||
|
||||
数据库:指定连接服务器后自动打开的数据库。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user