SELinux TCP Port Context restorecon -Rv /var/lib/mysql-files yum install -y policycoreutils-python-utils shell>  semanage port -l | grep mysqld mysqld_port_t tcp 1186, 3306, 63132-63164 shell>  semanage port -l | grep mysqld mysqld_port_t tcp 3307, 1186, 3306, 63132-63164 semanage port -a -t mysqld_port_t -p tcp 3307 setsebool -P mysql_connect_any=ON semanage port -l | grep mysqld 1605 Assuming the Group Replication communication port is 33061, set the port context by issuing: If SELinux is enabled, you must set the port context for the Group Replication communication port, which is defined by the  group_replication_local_address  variable.  mysqld  must be able to bind to the Group Replication communication port and listen there. InnoDB Cluster relies on Group Replication so this applies equally to instances used in a cluster. To view ports currently used by MySQL, issue: From MySQL 8.0.14 to MySQL 8.0.17, the  mysql_connect_any  SELinux boolean must be set to  ON . As of MySQL 8.0.18, enabling  mysql_connect_any  is not required or recommended. The following sections describe how to set port contexts for MySQL features. Generally, the same method can be used to set the port context for any MySQL features. For information about ports used by MySQL features, refer to the MySQL Port Reference. If you enable certain MySQL features, you might need to set the SELinux TCP port context for additional ports used by those features. If ports used by MySQL features do not have the correct SELinux context, the features might not function correctly. Setting the TCP Port Context for Group Replication 6.7.5.2 Setting the TCP Port Context for MySQL Features 6.7.5.1 Setting the TCP Port Context for mysqld To confirm that the port is added: If you configure  mysqld  to use a different TCP  port , you may need to set the context for the new port. For example to define the SELinux context for a non-default port such as port 3307: The default TCP port for  mysqld  is  3306 ; and the SELinux context type used is  mysqld_port_t . After installing the  semanage  binary, you can list ports defined with the  mysqld_port_t  context using semanage  with the  port  option. The instructions that follow use the  semanage  binary to manage port context; on RHEL, it’s part of the policycoreutils-python-utils  package: For more information about this variable, see the  secure_file_priv  documentation. Edit this path if you used a different location. For security purposes, this directory should never be within the data directory. 6.7.5 SELinux TCP Port Context