summaryrefslogtreecommitdiff
path: root/rust/scripts/create_db.sh
blob: 4e6ebc1a325613ddb9c8f216fd4a868e56520a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
echo "choose a password for the database:"
read input
echo "creating database..."
sudo mariadb -u root <<EOF
$(cat scripts/create_user.sql)
EOF

echo '$input'

sudo mariadb -u root < ./scripts/create_db.sql