Skip to content

Instantly share code, notes, and snippets.

@westonruter
Created October 31, 2014 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save westonruter/7fc881e58528305bd3a7 to your computer and use it in GitHub Desktop.
Save westonruter/7fc881e58528305bd3a7 to your computer and use it in GitHub Desktop.
Drop into a MySQL prompt using WP-CLI. Who ever said eval was evil? >:-)
eval $(wp eval "printf( 'mysql -u%s -p%s %s', escapeshellarg( DB_USER ), escapeshellarg( DB_PASSWORD ), escapeshellarg( DB_NAME ) );")
@westonruter
Copy link
Author

Bah, I totally overlooked wp db cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment