Skip to content

Instantly share code, notes, and snippets.

@sebastiansommer
Created May 4, 2020 08:29
Show Gist options
  • Save sebastiansommer/1a105222e2fc34f483c99f6df2253a70 to your computer and use it in GitHub Desktop.
Save sebastiansommer/1a105222e2fc34f483c99f6df2253a70 to your computer and use it in GitHub Desktop.
DDEV Open MYSQL from Command Line (for example to use TablePlus)
PORT="$(ddev describe | ggrep -Pio "(?<=port=)[0-9]*")"
open mysql://db:db@127.0.0.1:${PORT}/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment