From f1ce4990d47a34928e2358dcd700dca7853ff37a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 19 Jan 2015 17:02:58 +0900 Subject: [PATCH] Adding sql init scripts --- scrape/init.sh | 2 ++ scrape/init.sql | 4 ++++ 2 files changed, 6 insertions(+) create mode 100755 scrape/init.sh create mode 100644 scrape/init.sql diff --git a/scrape/init.sh b/scrape/init.sh new file mode 100755 index 0000000..ae7188e --- /dev/null +++ b/scrape/init.sh @@ -0,0 +1,2 @@ +#!/bin/bash +mysql -p -u root < init.sql diff --git a/scrape/init.sql b/scrape/init.sql new file mode 100644 index 0000000..a89a1d0 --- /dev/null +++ b/scrape/init.sql @@ -0,0 +1,4 @@ +CREATE DATABASE hscd; +USE hscd; +CREATE USER 'hscd'@'localhost'; +GRANT ALL PRIVILEGES ON hscd . * to 'hscd'@'localhost';