8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 99%

第 8 章 安全Chapter 8 Security

在考虑 MySQL 安装中的安全性时,你应当考虑各种可能的主题以及它们如何影响你的 MySQL 服务器和相关应用程序的安全性:When thinking about security within a MySQL installation, you should consider a wide range of possible topics and how they affect the security of your MySQL server and related applications:

  • 影响安全的常规因素。这些因素包括选择强密码、不授予用户不必要的权限、通过防止 SQL 注入和数据损坏来确保应用程序安全等。参见第 8.1 节,“常规安全问题”。General factors that affect security. These include choosing good passwords, not granting unnecessary privileges to users, ensuring application security by preventing SQL injections and data corruption, and others. See Section 8.1, “General Security Issues”.

  • 安装本身的安全性。您的安装中的数据文件、日志文件以及所有应用程序文件都应受到保护,以确保未经授权的人员无法读取或写入。更多信息,请参见第 2.9 节,“安装后设置和测试”。Security of the installation itself. The data files, log files, and the all the application files of your installation should be protected to ensure that they are not readable or writable by unauthorized parties. For more information, see Section 2.9, “Postinstallation Setup and Testing”.

  • 数据库系统内部的访问控制和安全性,包括被授予访问数据库的用户和数据库,以及数据库中使用的视图和存储程序。更多信息,请参见 第 8.2 节,“访问控制与账户管理”。Access control and security within the database system itself, including the users and databases granted with access to the databases, views and stored programs in use within the database. For more information, see Section 8.2, “Access Control and Account Management”.

  • 安全相关插件提供的功能。参见 第 8.4 节,“安全组件与插件”。The features offered by security-related plugins. See Section 8.4, “Security Components and Plugins”.

  • MySQL 和您的系统的网络安全。安全性与各个用户的权限相关,但您可能还希望限制 MySQL,使其仅在 MySQL 服务器主机上可用,或仅对有限的一组其他主机可用。Network security of MySQL and your system. The security is related to the grants for individual users, but you may also wish to restrict MySQL so that it is available only locally on the MySQL server host, or to a limited set of other hosts.

  • 确保您对数据库文件、配置文件和日志文件有充足且适当的备份。同时确保您有恢复方案,并测试能够成功从备份中恢复信息。请参见 第 9 章,备份与恢复。Ensure that you have adequate and appropriate backups of your database files, configuration and log files. Also be sure that you have a recovery solution in place and test that you are able to successfully recover the information from your backups. See Chapter 9, Backup and Recovery.

Note

本章中的几个主题也在 安全部署指南 中有所涉及,该指南提供了部署 MySQL 企业版服务器通用二进制发行版的程序,并具有管理 MySQL 安装安全性的功能。Several topics in this chapter are also addressed in the Secure Deployment Guide, which provides procedures for deploying a generic binary distribution of MySQL Enterprise Edition Server with features for managing the security of your MySQL installation.