Documentation Home
MySQL 9.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.0Mb
PDF (A4) - 40.1Mb
Man Pages (TGZ) - 259.0Kb
Man Pages (Zip) - 366.2Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 9.0 Reference Manual  / ...  / Security  / SELinux  / SELinux TCP Port Context  /  Setting the TCP Port Context for mysqld

8.7.5.1 Setting the TCP Port Context for mysqld

The default TCP port formysqld is3306; and the SELinux context type used ismysqld_port_t.

If you configuremysqld to use a different TCPport, 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:

semanage port -a -t mysqld_port_t -p tcp 3307

To confirm that the port is added:

$> semanage port -l | grep mysqldmysqld_port_t                  tcp      3307, 1186, 3306, 63132-63164