MySQL 8.4 Release Notes
下表显示了mysqld 选项和影响安全性的系统变量。有关每个选项的描述,请参见第 7.1.7 节,“服务器命令选项”,以及第 7.1.8 节,“服务器系统变量”。The following table shows mysqld options and system variables that affect security. For descriptions of each of these, see Section 7.1.7, “Server Command Options”, and Section 7.1.8, “Server System Variables”.
表 8.1 安全选项和变量摘要Table 8.1 Security Option and Variable Summary
| 名称Name | 命令行Cmd-Line | 选项文件Option File | 系统变量System Var | 状态变量Status Var | 变量范围Var Scope | 动态Dynamic |
|---|---|---|---|---|---|---|
| 允许可疑 UDFallow-suspicious-udfs | 是Yes | 是Yes | ||||
| 自动存储过程权限 (automatic_sp_privileges)automatic_sp_privileges | 是Yes | 是Yes | 是Yes | 全球Global | 是Yes | |
| 根目录切换chroot | 是Yes | 是Yes | ||||
| 本地文件导入local_infile | 是Yes | 是Yes | 是Yes | 全球Global | 是Yes | |
| 安全用户创建safe-user-create | 是Yes | 是Yes | ||||
| secure_file_priv(安全文件权限)secure_file_priv | 是Yes | 是Yes | 是Yes | 全球Global | 否No | |
| 跳过授权表skip-grant-tables | 是Yes | 是Yes | ||||
| 跳过名称解析skip_name_resolve | 是Yes | 是Yes | 是Yes | 全球Global | 否No | |
| 跳过网络功能skip_networking | 是Yes | 是Yes | 是Yes | 全球Global | 否No | |
| 跳过显示数据库skip_show_database | 是Yes | 是Yes | 是Yes | 全球Global | 否No |