Thread: List of servers
View Single Post
  #3  
Old 7th June 2005, 12:40
deedee deedee is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'd run
Code:
netstat -tap
It will show a list with lines like this:

Code:
tcp        0      0 *:mysql                 *:*                     LISTEN      17735/mysqld
where mysql is the port. If you want to know the number of the port, run

Code:
grep mysql /etc/services
It'll show

Code:
mysql           3306/tcp                        # MySQL
mysql           3306/udp                        # MySQL
so you know the MySQL port is 3306.
Reply With Quote