diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
commit | 7df09f8b146ae7fb091787770fe5681381164f0e (patch) | |
tree | 0310d8dad1d0c6198d68d13b22030db3c5e8b28f /scripts/create_db.sh | |
parent | 0972fa6eab8c9111311f082ba8abfdc6b4a40945 (diff) |
fix database setup
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 |