摘要:
一. getopts getopts 是 Unix/Linux 中用于解析命令行参数的常用工具,主要用于 Shell 脚本中处理短选项(如 -a、-b value 等) 1. 例子 #!/bin/bash while getopts d:f: flag; do case "$flag" in d) 阅读全文
摘要:
1.创建用户 create user 'test'@'%' identified by '123456'; 2.赋予权限 grant 权限 on 此用户可操作的数据块或表 to 用户名@登录方式; grant select,insert,update,delete,create,drop on *. 阅读全文