File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ homepage:**http://www.sqlpy.com**
24
24
- [ 统计慢查询文件中的SQL类型与热点表 -- mtls-sql-distribution] ( #统计慢查询文件中的SQL类型与热点表 )
25
25
- [ 表的最晚更新时间统计 -- mtls-file-stat] ( #表的最晚更新时间统计 )
26
26
- [ 找出长时间没有使用过的表 -- mtls-expired-tables] ( #找出长时间没有使用过的表 )
27
+ - [ 批量生成随机密码 -- mtls-random-passwd] ( 批量生成随机密码 )
27
28
---
28
29
29
30
## 关于
@@ -870,3 +871,29 @@ homepage:**http://www.sqlpy.com**
870
871
871
872
872
873
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
+ ---
You can’t perform that action at this time.
0 commit comments