Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MySQL Port Question

Posted on 2012-12-29
4
Medium Priority
?
513 Views
Last Modified: 2013-01-13
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?
0
Comment
Question by:Jack_son_
4 Comments
 
LVL 8

Assisted Solution

by:rpkhare
rpkhare earned 500 total points
ID: 38729000
When you install MySQL, it automatically chooses a port. You should keep the one it configures while installing.
0
 
LVL 10

Assisted Solution

by:Damjan
Damjan earned 500 total points
ID: 38729020
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.
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 500 total points
ID: 38729039
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
0
 
LVL 15

Accepted Solution

by:
Insoftservice earned 500 total points
ID: 38729119
3306  is default port for mysql. while connecting these two servers you could provide the correct hostname to the server
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
What we learned in Webroot's webinar on multi-vector protection.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question