Skip to content

Commit 62990cb

Browse files
committed
更新密码工具 mtls-random-passwd 相关的文档
1 parent 98ce38a commit 62990cb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ homepage:**http://www.sqlpy.com**
2424
- [统计慢查询文件中的SQL类型与热点表 -- mtls-sql-distribution](#统计慢查询文件中的SQL类型与热点表)
2525
- [表的最晚更新时间统计 -- mtls-file-stat](#表的最晚更新时间统计)
2626
- [找出长时间没有使用过的表 -- mtls-expired-tables](#找出长时间没有使用过的表)
27+
- [批量生成随机密码 -- mtls-random-passwd](批量生成随机密码)
2728
---
2829

2930
## 关于
@@ -870,3 +871,29 @@ homepage:**http://www.sqlpy.com**
870871
871872
872873
874+
875+
## 批量生成随机密码
876+
在创建 MySQL 用户的时候还在绞尽脑汁地想一个高强度的密码吗?现在不用这么做了,让程序完全随机的生成吧。
877+
```bash
878+
mtls-random-passwd --help
879+
usage: mtls-random-passwd [-h] [--batch BATCH] length
880+
881+
positional arguments:
882+
length 密码的长度
883+
884+
optional arguments:
885+
-h, --help show this help message and exit
886+
--batch BATCH, -b BATCH
887+
一次随机产生多少密码(默认一个密码)
888+
```
889+
选项参数 --batch 指定一次生成多少个随机密码,位置参数指定密码的长度,下面的这个例子可以一次性生成 4 个 12 位长度的密码。
890+
```bash
891+
mtls-random-passwd -b 4 12
892+
893+
L}55!|nKI3&w
894+
z6w2$3**I5Mh
895+
w_0}345&3*[L
896+
t~Gj1-+z8269
897+
```
898+
899+
---

0 commit comments

Comments
 (0)