MySQL Port Question

Jack_son_
Jack_son_ used Ask the Experts™
on
If I have a back end server with a MYSql database and then a front end server with a php application, which ports do I open to configure communication between the two servers?  Just 3306, or should there be others?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
When you install MySQL, it automatically chooses a port. You should keep the one it configures while installing.
Commented:
To communicate witch MySQL server you need to open only port 3306 (default). For security reasons allow MySQL server access from your web server only.
Most Valuable Expert 2011
Top Expert 2016
Commented:
It's almost always 3306.  There may be others for clusters, etc.  This (slow to load) document has a canonical list:
http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
3306  is default port for mysql. while connecting these two servers you could provide the correct hostname to the server

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial