find which port mysql is running on xampp code example Example: netstat -tln mysql lsof -n -P -i TCP -s TCP:LISTEN