From ef24c9786b1fba42690e3e1e83cb10e5023cb61c Mon Sep 17 00:00:00 2001 From: Steve Salevan Date: Sun, 28 Sep 2014 17:22:24 -0400 Subject: [PATCH] Adding dev privileges grant --- .gitignore | 4 +++- bootstrap | 1 + dev_privileges.sql | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 dev_privileges.sql diff --git a/.gitignore b/.gitignore index d6bf470..f2bf213 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ *.war *.ear *.class +*.log +*.d64 # eclipse specific git ignore *.pydevproject @@ -25,4 +27,4 @@ local.properties .externalToolBuilders/ # Locally stored "Eclipse launch configurations" -*.launch \ No newline at end of file +*.launch diff --git a/bootstrap b/bootstrap index 35dffb9..1bbcff9 100755 --- a/bootstrap +++ b/bootstrap @@ -1,3 +1,4 @@ #!/bin/bash +mysql -uroot -Dqlink < ./dev_privileges.sql mysql -uroot -Dqlink < ./schema.sql diff --git a/dev_privileges.sql b/dev_privileges.sql new file mode 100644 index 0000000..4beae56 --- /dev/null +++ b/dev_privileges.sql @@ -0,0 +1,5 @@ +CREATE DATABASE IF NOT EXISTS `qlink`; + +GRANT ALL ON `qlink`.* TO 'qlinkuser'@'localhost' IDENTIFIED BY 'qlinkpass'; +FLUSH PRIVILEGES; +COMMIT; \ No newline at end of file