If you want to check if something is running at some port, you may run the following command::
Get-Process -Id (Get-NetTCPConnection -LocalPort 3306).OwningProcess
If an error is returned, then, there is nothing to run on the given port. Otherwise, it displays what the program/service is running.