Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 36.5Mb
PDF (A4) - 36.5Mb
PDF (RPM) - 36.6Mb
HTML Download (TGZ) - 10.6Mb
HTML Download (Zip) - 10.6Mb
HTML Download (RPM) - 9.4Mb
Man Pages (TGZ) - 223.2Kb
Man Pages (Zip) - 331.1Kb
Info (Gzip) - 3.3Mb
Info (Zip) - 3.3Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  /  ...  /  Setting the TCP Port Context for mysqld

6.7.5.1 Setting the TCP Port Context for mysqld

The default TCP port for mysqld is 3306; and the SELinux context type used is mysqld_port_t.

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:

semanage port -a -t mysqld_port_t -p tcp 3307

To confirm that the port is added:

shell> semanage port -l | grep mysqld
mysqld_port_t                  tcp      3307, 1186, 3306, 63132-63164