Professional Documents
Culture Documents
Unix - How To Check What Port Mysql Is Running On - Server Fault
Unix - How To Check What Port Mysql Is Running On - Server Fault
SPONSORED BY
Ask Question
83
Locked. This question and its answers are
votes
locked because the question is off-topic
but has historical significance. It is not
currently accepting new answers or
interactions.
Sorted by:
10 Answers
Highest score (default)
104 I did
votes
mysql> SHOW GLOBAL VARIABLES
LIKE 'PORT';
Share
Add a comment
netstat -tlnp
Add a comment
votes
mysql -u root
and then put that pid into lsof to print out all
the open file descriptors. You'll find the port
the process is bound to near the top.
[mysqld]
port = 3308
votes
shell$> tail -f /var/log/mysql/mysqld.log
votes
I used lsof -i TCP:3306 to find out the
mysqld process. which was actually listenting
into *.mysql
Add a comment
Featured on Meta
Related
117 Why does the MySQL command line tool ignore the --
port parameter?
Calculate numbers
"Prime" pyramid
SERVER FAULT
COMPANY
Cookie Policy