Skip to content
Snippets Groups Projects
Commit 2b635bcb authored by sak2n21's avatar sak2n21
Browse files

(Commit Message) Updated version for create database and tables

parent 1cf364aa
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
$(/opt/lampp/bin/mysql -u root -e"create database dataCollect_db; use dataCollect_db")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table golddata (id int NOT NULL AUTO_INCREMENT, goldbitprice float, goldaskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table golddata (id int NOT NULL AUTO_INCREMENT, goldbidprice float, goldaskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table silverdata (id int NOT NULL AUTO_INCREMENT, silverbitprice float, silveraskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table silverdata (id int NOT NULL AUTO_INCREMENT, silverbidprice float, silveraskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table palladiumdata (id int NOT NULL AUTO_INCREMENT, palladiumbitprice float, palladiumaskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table palladiumdata (id int NOT NULL AUTO_INCREMENT, palladiumbidprice float, palladiumaskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table platinumdata (id int NOT NULL AUTO_INCREMENT, platinumbitprice float, platinumaskprice float,datetime DATETIME,PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e"use dataCollect_db; create table platinumdata (id int NOT NULL AUTO_INCREMENT, platinumbidprice float, platinumaskprice float,datetime DATETIME,PRIMARY KEY (id))")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment