Created
October 31, 2014 06:28
-
-
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? >:-)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval $(wp eval "printf( 'mysql -u%s -p%s %s', escapeshellarg( DB_USER ), escapeshellarg( DB_PASSWORD ), escapeshellarg( DB_NAME ) );") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bah, I totally overlooked
wp db cli
.