Skip to content
Snippets Groups Projects
Commit e6255112 authored by hqo1e21's avatar hqo1e21
Browse files

(Commit message) script file to create database

parent 1648886b
No related branches found
No related tags found
No related merge requests found
#!/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())")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment