diff options
Diffstat (limited to 'scripts/create_db.sh')
-rw-r--r-- | scripts/create_db.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/create_db.sh b/scripts/create_db.sh index c0e759c..4f4a483 100644 --- a/scripts/create_db.sh +++ b/scripts/create_db.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "choose a password for the database:" -read input +read -s input echo "use xampp's version of mariadb? [y/n]" read answer @@ -19,9 +19,7 @@ fi echo "creating database..." $sudo $mariadb -u root <<EOF -$(cat scripts/create_user.sql) +CREATE OR REPLACE USER 'balalaika_user'@'%' IDENTIFIED BY '$input'; EOF -echo '$input' - $sudo $mariadb -u root < ./scripts/create_db.sql |