Solved

MySQL Port Question

Posted on 2012-12-29
4
503 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Assisted Solution

by:rpkhare
rpkhare earned 125 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 125 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 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 125 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 125 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

636 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