General Security Issues 6.5.3 Using MySQL Enterprise Data Masking and De-Identification ......................................... 1577 6.5.4 MySQL Enterprise Data Masking and De-Identification Function Reference ..................... 1583 6.5.5 MySQL Enterprise Data Masking and De-Identification Function Descriptions .................. 1584 6.6 MySQL Enterprise Encryption .................................................................................................. 1593 6.6.1 MySQL Enterprise Encryption Installation ...................................................................... 1594 6.6.2 MySQL Enterprise Encryption Usage and Examples ...................................................... 1595 6.6.3 MySQL Enterprise Encryption Function Reference ......................................................... 1597 6.6.4 MySQL Enterprise Encryption Function Descriptions ...................................................... 1597 6.7 SELinux .................................................................................................................................. 1601 6.7.1 Check if SELinux is Enabled ........................................................................................ 1602 6.7.2 Changing the SELinux Mode ........................................................................................ 1603 6.7.3 MySQL Server SELinux Policies ................................................................................... 1603 6.7.4 SELinux File Context .................................................................................................... 1603 6.7.5 SELinux TCP Port Context ........................................................................................... 1605 6.7.6 Troubleshooting SELinux .............................................................................................. 1606 6.8 FIPS Support .......................................................................................................................... 1607 •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 6.1, “General Security Issues” . •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.10, “Postinstallation Setup and Testing” . •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 6.2, “Access Control and Account Management” . •The features offered by security-related plugins. See Section 6.4, “Security Components and Plugins” . •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. •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 7,  Backup and Recovery . 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: 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. This section describes general security issues to be aware of and what you can do to make your MySQL installation more secure against attack or misuse. For information specifically about the access control system that MySQL uses for setting up user accounts and checking database access, see Section 2.10, “Postinstallation Setup and Testing” . 6.1 General Security Issues Note 1170