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.