Skip to content
Snippets Groups Projects
Commit c392684a authored by st6g19's avatar st6g19
Browse files

bash file to create database and tables

parent 8e88ce02
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
$(/opt/lampp/bin/mysql -u root -e "create database furniture_price; use furniture_price") #$(/opt/lampp/bin/mysql -u root -e "create database furniture_price; use furniture_price")
$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table bed_price(id int, bed_type varchar(50), bed_price float, get_date timestamp)") #$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table bed_data(id int NOT NULL AUTO_INCREMENT, bed_name varchar(50), bed_price float, get_date timestamp, PRIMARY KEY (id))")
#$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table sideTable_data(id int NOT NULL AUTO_INCREMENT, sideTable_name varchar(50), sideTable_price float, get_date timestamp, PRIMARY KEY (id))")
#$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table drawer_data(id int NOT NULL AUTO_INCREMENT, drawer_name varchar(50), drawer_price float, get_date timestamp, PRIMARY KEY (id))")
$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table wardrobe_data(id int NOT NULL AUTO_INCREMENT, wardrobe_name varchar(50), wardrobe_price float, get_date timestamp, PRIMARY KEY (id))")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment