Skip to content

Instantly share code, notes, and snippets.

@pierophp
Last active December 11, 2017 15:14
Show Gist options
  • Save pierophp/dd2ab1ab8f0ed3c4c963 to your computer and use it in GitHub Desktop.
Save pierophp/dd2ab1ab8f0ed3c4c963 to your computer and use it in GitHub Desktop.
Pegando pid pela porta do MySQL
ps aux | grep $(sudo lsof -i tcp -nP | grep "15245 (" | head -n 1 | awk '{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment