Skip to content
Snippets Groups Projects
Commit 6a38f261 authored by Vermaat's avatar Vermaat
Browse files

Create databases in install script (fixes #112)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@640 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 455ae1e2
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,15 @@ chmod u=rw,go=r /etc/apache2/conf.d/mutalyzer.conf
echo "You will now be asked for the MySQL root password"
# Create databases
cat << EOF | mysql -u root -p
CREATE USER mutalyzer;
CREATE DATABASE mutalyzer;
CREATE DATABASE hg18;
CREATE DATABASE hg19;
GRANT ALL PRIVILEGES ON mutalyzer.* TO mutalyzer;
GRANT ALL PRIVILEGES ON hg18.* TO mutalyzer;
GRANT ALL PRIVILEGES ON hg19.* TO mutalyzer;
FLUSH PRIVILEGES;
echo -e "${COLOR_INFO}Creating tables in hg18 database${COLOR_END}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment