MySQL Port Question

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?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

InsoftserviceConnect With a Mentor Commented:
3306  is default port for mysql. while connecting these two servers you could provide the correct hostname to the server
rpkhareConnect With a Mentor Commented:
When you install MySQL, it automatically chooses a port. You should keep the one it configures while installing.
DamjanConnect With a Mentor 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.
Ray PaseurConnect With a Mentor Commented:
It's almost always 3306.  There may be others for clusters, etc.  This (slow to load) document has a canonical list:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.