Skip to content

Commit 5ab6d6d

Browse files
authored
doc: 修正 mysql 命令参数说明 (#41)
1 parent 3dcbbf6 commit 5ab6d6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/chapter3/3.1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
3939
mysql>
4040
```
4141

42-
- `-h127.0.0.1` 其中“-p”是参数,“rootpassword”,默认本地参数可忽略
43-
- `-P3306` 其中“-P”是参数(注意大写),“3306”,默认本地参数可忽略
42+
- `-h127.0.0.1` 其中“-h”是参数,“127.0.0.1” 是 IP 地址,默认本地参数可忽略
43+
- `-P3306` 其中“-P”是参数(注意大写),“3306” 是端口号,默认本地参数可忽略
4444
- `-uroot` 其中“-u”是参数,“root” 是用户名。
45-
- `-prootpassword` 其中“-p”是参数,“rootpassword” 是用户名
45+
- `-prootpassword` 其中“-p”是参数,“rootpassword” 是密码
4646
- `Commands end with ; or \g.` 命令的结束符,用“;”或者“\g”符号结束,但是冒号结束退出是不行的。
4747
- `Your MySQL connection id is 99` 其中 id 表示客户端的连接 ID,该数据记录了 MySQL 服务到目前为止的连接次数,每次新连接都会自动加 1。由于数据库服务是我安装了好久的,所以当前 ID 值为 99。
4848
- `Server version: 5.7.14 MySQL` MySQL的版本。

0 commit comments

Comments
 (0)