diff --git a/createDB.sh b/createDB.sh new file mode 100755 index 0000000000000000000000000000000000000000..9b4c581a365268a698dcfd6438d4fb9e92c5e828 --- /dev/null +++ b/createDB.sh @@ -0,0 +1,10 @@ +#!/bin/bash +$(/opt/lampp/bin/mysql -u root -e "create database cw2; use cw2") + +$(/opt/lampp/bin/mysql -u root -e "use cw2; create table gold (goldBit float, goldAsk float, goldChg float, goldCHgPercent float, dateTime DATETIME default current_timestamp())") + +$(/opt/lampp/bin/mysql -u root -e "use cw2; create table silver (silverBit float, silverAsk float, silverChg float, silverCHgPercent float, dateTime DATETIME default current_timestamp())") + +$(/opt/lampp/bin/mysql -u root -e "use cw2; create table platinum (platinumBit float, platinumAsk float, platinumChg float, platinumCHgPercent float, dateTime DATETIME default current_timestamp())") + +$(/opt/lampp/bin/mysql -u root -e "use cw2; create table palladium (palladiumBit float, palladiumAsk float, palladiumChg float, palladiumCHgPercent float, dateTime DATETIME default current_timestamp())")