Skip to content

Instantly share code, notes, and snippets.

@alexpgates
Created November 16, 2017 18:10
Show Gist options
  • Save alexpgates/b009bf6e785f44a338762cda5f779a26 to your computer and use it in GitHub Desktop.
Save alexpgates/b009bf6e785f44a338762cda5f779a26 to your computer and use it in GitHub Desktop.
#!/bin/bash
NAME=${PWD##*/}
mysql -uroot -e "CREATE DATABASE IF NOT EXISTS \`$NAME\`"
@alexpgates
Copy link
Author

Then create an alias alias dbme='~/path/to/dbme.sh'

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