Skip to content

Instantly share code, notes, and snippets.

@pujie
Created June 3, 2015 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pujie/395f520f2a87227748b1 to your computer and use it in GitHub Desktop.
Save pujie/395f520f2a87227748b1 to your computer and use it in GitHub Desktop.
#!/bin/bash
#mysql -h localhost -u root -p --execute "create database teknis"
mysql -h localhost -u root -p <doquery.sql
drop database if exists test123;
create database test123;
use test123;
create table tbl1(id int primary key auto_increment,name varchar(200),createdate timestamp default current_timestamp);
create table tbl2(id int primary key auto_increment,name varchar(200),createdate timestamp default current_timestamp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment