Skip to content

Instantly share code, notes, and snippets.

@steinkel
Created November 17, 2017 00:52
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 steinkel/a8c27b47ada34cb39b739444e482c43e to your computer and use it in GitHub Desktop.
Save steinkel/a8c27b47ada34cb39b739444e482c43e to your computer and use it in GitHub Desktop.
cakefest 2017 create database and import schema
mysql -uroot -e "CREATE DATABASE my_app; CREATE DATABASE test_myapp"
mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* to my_app@localhost identified by 'secret'"
curl -L https://raw.githubusercontent.com/steinkel/cakefest2017/master/schema.sql |mysql -uroot my_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment