1

Adding sql init scripts

This commit is contained in:
Alex Yatskov 2015-01-19 17:02:58 +09:00
parent 2a41b75ae5
commit f1ce4990d4
2 changed files with 6 additions and 0 deletions

2
scrape/init.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
mysql -p -u root < init.sql

4
scrape/init.sql Normal file
View File

@ -0,0 +1,4 @@
CREATE DATABASE hscd;
USE hscd;
CREATE USER 'hscd'@'localhost';
GRANT ALL PRIVILEGES ON hscd . * to 'hscd'@'localhost';