Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
88be7384
Commit
88be7384
authored
May 27, 2017
by
Casualet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:yiwenshao/Practical-Cryptdb
parents
2c9258db
ad309c86
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
139 additions
and
113 deletions
+139
-113
mbk.cc
main/mbk.cc
+92
-113
intnormal.sh
packages/tls/intnormal.sh
+47
-0
No files found.
main/mbk.cc
View file @
88be7384
This diff is collapsed.
Click to expand it.
packages/tls/intnormal.sh
0 → 100755
View file @
88be7384
if
[
$#
=
0
]
;
then
echo
"arg1 num in pipe, arg2 num of pipe"
exit
fi
function
inittable
{
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tpcc1000"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"create database tpcc1000"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"use tpcc1000; drop table if exists student"
len
=
$[$1
+16]
#not supported
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"use tpcc1000; create table if not exists student2(name integer)"
}
#generate load.sql
head
=
'INSERT INTO student2 VALUES '
cur
=
1234567
multi
=
""
function
getMultipleFields
{
num
=
$1
multi
=
\(
$cur
\)
for
((
i
=
1
;
i<
$num
;
i++
))
do
multi
=
${
multi
}
\,\(
$cur
\)
done
}
getMultipleFields
$1
rm
-rf
load.sql
echo
"start to get multiple inserts!!!!"
for
((
i
=
0
;
i<
$2
;
i++
))
do
echo
$head$multi
\;
>>
load.sql
done
inittable
mysql
-uroot
-pletmein
-h127
.0.0.1 tpcc1000 < load.sql
mysqldump
--skip-extended-insert
-uroot
-pletmein
-h127
.0.0.1
--hex-blob
--compact
tpcc1000
>
back.sql
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment