Set Mysql default port 3306 to other on cent OS 7
- I have not found direct solution for it. But follow below steps
- Install package semanage
- yum install policycoreutils-python
- Run below Check which port mysql access
- sudo /usr/sbin/semanage port -l | grep mysql
- Run below change port 9999 to port which is set in my.cnf and restart mysql
- sudo /usr/sbin/semanage port -a -t mysqld_port_t -p tcp 9999
By this way you can
Comments
Post a Comment