diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-27 14:04:23 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-27 14:04:23 +0200 |
commit | db58cb58b5d5612ec2aa347d0f8531b26ab2e7f3 (patch) | |
tree | 948e96bf2eabc7694194c07e9ac19acafa760b94 /rust/scripts/create_db.sh | |
parent | 9d70bfed33df8ea4cd77f915454da265edccf401 (diff) |
upload changes
Diffstat (limited to 'rust/scripts/create_db.sh')
-rw-r--r-- | rust/scripts/create_db.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/scripts/create_db.sh b/rust/scripts/create_db.sh new file mode 100644 index 0000000..cddcdd9 --- /dev/null +++ b/rust/scripts/create_db.sh @@ -0,0 +1,10 @@ +#!/bin/bash +echo "choose a password for the database: 'input;" +read input +echo $(pwd) +echo "creating database..." +sudo mariadb -u root <<EOF +$(cat scripts/create_user.sql) +EOF + +sudo mariadb -u root < ./scripts/create_db.sql |