Commit d41e8f34 authored by casualet's avatar casualet

add script to install cryptdb

parent 7faeb631
......@@ -5,15 +5,13 @@ tags
shadow/
core
curMysql
mysql-proxy.cnf
mysql-proxy1.cnf
reset.sh
reset.sql
startMM.sh
test
tutorial-basic.lua
cscope.files
cscope.out
cscope.files
cscope.out
tags
readFile
writeFile
sudo apt update -y
sudo apt remove bison libbison-dev -y
sudo apt upgrade -y
sudo apt install g++-4.7 gawk liblua5.1-0-dev libntl-dev libmysqlclient-dev libssl-dev libbsd-dev libevent-dev libglib2.0-dev libgmp-dev mysql-server libaio-dev automake gtk-doc-tools flex cmake libncurses5-dev make ruby lua5.1 libmysqld-dev -y
cd packages;sudo dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb;sudo dpkg -i bison_2.7.1.dfsg-1_amd64.deb;cd ..
echo =============COMPILE MYSQL================================
rm -rf mysql-src
tar -xvf packages/mysql-src.tar.gz
export CXX=g++-4.7
cd mysql-src;mkdir build;cd build;cmake -DWITH_EMBEDDED_SERVER=on -DENABLE_DTRACE=off .. ; make;cd ../..;
echo ===============OK========================================
echo =============INSTALL MYSQL-proxy=========================
tar -xvf packages/mysql-proxy-0.8.5.tar.gz -C mysql-src/
binpath=`pwd`/mysql-src/mysql-proxy-0.8.5/bin
echo " " >> ~/.bashrc
echo PATH='$'PATH:${binpath} >> ~/.bashrc
source ~/.bashrc
echo =============INSTALL Cryptdb=============================
make
sudo make install
chmod 0660 mysql-proxy.cnf
echo ============Enjoy it!!!=====================================
MYSRC := $(shell pwd)/mysql-src
MYBUILD := $(MYSRC)/build
RPATH := 1
CXX := g++-4.7
MYSQL_PLUGIN_DIR := /usr/lib/mysql/plugin
OBJDIR := obj
TOP := $(shell echo $${PWD-`pwd`})
CXX := g++
#CXX := g++
AR := ar
## -g -O0 -> -O2
CXXFLAGS := -g -O0 -fno-strict-aliasing -fno-rtti -fwrapv -fPIC \
......@@ -11,8 +19,6 @@ CXXFLAGS := -g -O0 -fno-strict-aliasing -fno-rtti -fwrapv -fPIC \
-Wunreachable-code -D_GNU_SOURCE -std=c++0x -I$(TOP)
LDFLAGS := -L$(TOP)/$(OBJDIR) -Wl,--no-undefined
## Copy conf/config.mk.sample to conf/config.mk and adjust accordingly.
include conf/config.mk
## Use RPATH only for debug builds; set RPATH=1 in config.mk.
ifeq ($(RPATH),1)
......
create database tdb;
use tdb;
create table student (id varchar(20),name varchar(20));
insert into student values("1","shao");
insert into student values("2","zhao");
select * from student;
create database tdb;
use tdb;
create table student (id integer,name varchar(20),city integer);
insert into student values(1,"sdadsakld",2222);
insert into student values(222,"dadlsakdjsla",21211);
insert into student values(333,"slkxjlkcjsal",45454);
insert into student values(4444,"dddkljlksajs",65657);
insert into student values(5555,"eejwklejiowiow",7677887);
select * from student;
create database tdb3;
use tdb3;
create table student (id integer,name varchar(20));
insert into student values(1,"shalkdjsaflkdjxljfelwo");
insert into student values(2,"dafdksalfdkjsaao");
insert into student values(3,"shewlrejkwl;ruejiojldksjfdsao");
insert into student values(4,"sdfdsafdslajao");
insert into student values(5,"shaxljkdl;fjdksalujeiowjaqi;ewasao");
insert into student values(6,"shafdsafldsjakfldsalew;joifnmof;newiojro");
select * from student;
quit
-- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
--
-- Host: localhost Database: tdb
-- ------------------------------------------------------
-- Server version 5.7.17-0ubuntu0.16.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `table_XSMHFHVBSI`
--
DROP TABLE IF EXISTS `table_XSMHFHVBSI`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `table_XSMHFHVBSI` (
`VJXMJSLTRKoEq` varbinary(48) DEFAULT NULL,
`MQEBZJIUNBoOrder` bigint(20) unsigned NOT NULL,
`cdb_saltXEUHERMBIR` bigint(8) unsigned DEFAULT NULL,
PRIMARY KEY (`MQEBZJIUNBoOrder`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `table_XSMHFHVBSI`
--
LOCK TABLES `table_XSMHFHVBSI` WRITE;
/*!40000 ALTER TABLE `table_XSMHFHVBSI` DISABLE KEYS */;
INSERT INTO `table_XSMHFHVBSI` VALUES ('@\\Z\6º\b g \nK\1,\~F',13302528688661037668,9478239721323719808);
/*!40000 ALTER TABLE `table_XSMHFHVBSI` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-02-20 10:05:18
-- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
--
-- Host: localhost Database: tdb
-- ------------------------------------------------------
-- Server version 5.7.17-0ubuntu0.16.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `table_NJEPWCGNHM`
--
DROP TABLE IF EXISTS `table_NJEPWCGNHM`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `table_NJEPWCGNHM` (
`GDXCBIOGHCoEq` bigint(20) unsigned DEFAULT NULL,
`ZUODMKIUXPoOrder` bigint(20) unsigned DEFAULT NULL,
`GNYQGOSSNDoADD` varbinary(256) DEFAULT NULL,
`cdb_saltQGHROCLZLL` bigint(8) unsigned DEFAULT NULL,
`QTREWFOEZNoEq` varbinary(64) DEFAULT NULL,
`WICWYJKSDYoOrder` bigint(20) unsigned DEFAULT NULL,
`cdb_saltFWIDYLNMRX` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `table_NJEPWCGNHM`
--
LOCK TABLES `table_NJEPWCGNHM` WRITE;
/*!40000 ALTER TABLE `table_NJEPWCGNHM` DISABLE KEYS */;
INSERT INTO `table_NJEPWCGNHM` VALUES (4830019261483347505,2324979638922462221,0x530FB1393394F932792FF90FE3CF74A3E7942CA5069AB58F9A93A356ECE2A02F897E9A3AF3416F4BF4CB6BAE54F8C8280BE3B5B3AE10B9B3CEC3C1BCD464E117DE39E7BBF7B2F61BD273352709851913348D2407F785493937DDFC3911EF7ED1D917D20A3ED00EB753976ACEA2F5906FE14243641DA4B6572919600758795A8B9C73694CB5219B59C20A9046B002FD08C34A790311BAF13D373E741979417EFBB7832CE4D603DB21D883027DA21A5E8451A6ACA295B41CA8EEB12B323401E44FB41A45B0B59A631EC8332630550B0879757AFC4A919B45C16D1A46DA1DE2B30A94E270964E8C9B87BCC0C0EA00EAB7A7F523CE123EE39064A5F290C05125FF3E,211794394337017064,0x5B5B095C18ED07D1586009433BB751F95E44F4378ABC217B9661D3B98C0948C0614872111EBD6EF70BFE98495A9F33FE,8074842047049308959,2009773872918125969);
/*!40000 ALTER TABLE `table_NJEPWCGNHM` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-02-08 15:51:22
-- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
--
-- Host: localhost Database: tdb2
-- ------------------------------------------------------
-- Server version 5.7.17-0ubuntu0.16.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `table_NJEPWCGNHM`
--
DROP TABLE IF EXISTS `table_NJEPWCGNHM`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `table_NJEPWCGNHM` (
`GDXCBIOGHCoEq` bigint(20) unsigned DEFAULT NULL,
`ZUODMKIUXPoOrder` bigint(20) unsigned DEFAULT NULL,
`GNYQGOSSNDoADD` varbinary(256) DEFAULT NULL,
`cdb_saltQGHROCLZLL` bigint(8) unsigned DEFAULT NULL,
`QTREWFOEZNoEq` varbinary(64) DEFAULT NULL,
`WICWYJKSDYoOrder` bigint(20) unsigned DEFAULT NULL,
`cdb_saltFWIDYLNMRX` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `table_NJEPWCGNHM`
--
LOCK TABLES `table_NJEPWCGNHM` WRITE;
/*!40000 ALTER TABLE `table_NJEPWCGNHM` DISABLE KEYS */;
INSERT INTO `table_NJEPWCGNHM` VALUES (4830019261483347505,2324979638922462221,'S932y/\\t\,V\\/~:AoK\kT\( 㵳\\\d\\9\\s5\' 4$I97\9\~\\\\n>\Sj΢o\BCdW)`XyZsiL!Y\\nF\Jy=7>tyA~,\\\!؃}\Z^Q\+24\O\ZEc\3&0U yuzJEm\ZF\\\n\pN\\0귧#\>\dQ%>',211794394337017064,'[[ \\\\X` C;Q^D7!{aӹ HaHrn IZ3',8074842047049308959,2009773872918125969);
/*!40000 ALTER TABLE `table_NJEPWCGNHM` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-02-08 15:55:08
find . | grep '\.cc$\|\.c$\|\.h$\|\.hh$' | xargs ctags
rm cscope*
find . | grep '\.cc$\|\.c$\|\.h$\|\.hh$' > cscope.files
cscope -R -b -i cscope.files
`pwd`/mysql-src/build/client/mysql -uroot -pletmein -h 127.0.0.1 -P3399
mkdir shadow
mysql-proxy --defaults-file=./mysql-proxy.cnf --proxy-lua-script=`pwd`/wrapper.lua
This diff is collapsed.
set softtabstop=4
set expandtab
set number
# see http://uncrustify.sourceforge.net/default.cfg
newlines = lf
input_tab_size = 8
indent_columns = 4
indent_with_tabs = 0
indent_class = true
indent_access_spec = 2
nl_after_access_spec = 1
cmt_width = 78
code_width = 78
nl_max = 2
nl_before_throw = add
nl_func_type_name = add
nl_fdef_brace = add
sudo gdb ./obj/main/cdb_test `ps aux| grep cdb_test|grep -v grep|awk '{print $2}'`
###start gdb
sudo gdb `which mysql-proxy` `ps aux | grep 'mysql-proxy.cnf' |grep -v grep | awk '{print $2}'`
[mysql-proxy]
plugins = proxy
event-threads = 4
proxy-address = 127.0.0.1:3399
proxy-backen-addresses = 127.0.0.1:3306
How to Run Mysql Proxy
----------------------
to start proxy:
% export EDBDIR=<...>/cryptdb
% mysql-proxy --plugins=proxy \
--event-threads=4 \
--max-open-files=1024 \
--proxy-lua-script=$EDBDIR/mysqlproxy/wrapper.lua \
--proxy-address=localhost:3307 \
--proxy-backend-addresses=localhost:3306
to specify username / password / shadow dir for proxy, run before starting proxy:
% export CRYPTDB_USER=...
% export CRYPTDB_PASS=...
% export CRYPTDB_SHADOW=...
to send a single command to mysql:
% mysql -u root -pletmein -h 127.0.0.1 -P 3307 -e 'command'
assert(package.loadlib("/t/cryt/obj/libexecute.so","lua_cryptdb_init"))()
local proto = assert(require("mysql.proto"))
local g_want_interim = nil
local skip = false
local client = nil
--
-- Interception points provided by mysqlproxy
--
function read_auth()
client = proxy.connection.client.src.name
-- Use this instead of connect_server(), to get server name
dprint("Connected " .. proxy.connection.client.src.name)
CryptDB.connect(proxy.connection.client.src.name,
proxy.connection.server.dst.address,
proxy.connection.server.dst.port,
os.getenv("CRYPTDB_USER") or "root",
os.getenv("CRYPTDB_PASS") or "letmein",
os.getenv("CRYPTDB_SHADOW") or "/t/cryt/shadow")
-- EDBClient uses its own connection to the SQL server to set up UDFs
-- and to manipulate multi-principal state. (And, in the future, to
-- store its schema state for single- and multi-principal operation.)
end
function disconnect_client()
dprint("Disconnected " .. proxy.connection.client.src.name)
CryptDB.disconnect(proxy.connection.client.src.name)
end
function read_query(packet)
printred("read_query========================================================================================")
local status, err = pcall(read_query_real, packet)
if status then
return err
else
return proxy.PROXY_SEND_QUERY
end
end
function read_query_result(inj)
printred("read_query_result========================================================================================")
local status, err = pcall(read_query_result_real, inj)
if status then
return err
else
print("read_query_result: " .. err)
return proxy.PROXY_SEND_RESULT
end
end
function split(pString, pPattern)
local Table = {} -- NOTE: use {n = 0} in Lua-5.0
local fpat = "(.-)" .. pPattern
local last_end = 1
local s, e, cap = pString:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(Table,cap)
end
last_end = e+1
s, e, cap = pString:find(fpat, last_end)
end
if last_end <= #pString then
cap = pString:sub(last_end)
table.insert(Table, cap)
end
return Table
end
--
-- Pretty printing
--
DEMO = true
COLOR_END = '\027[00m'
function redtext(x)
return '\027[1;31m' .. x .. COLOR_END
end
function greentext(x)
return '\027[1;92m'.. x .. COLOR_END
end
function orangetext(x)
return '\027[01;33m'.. x .. COLOR_END
end
function printred(x)
print(redtext(x), COLOR_END)
end
function printline(n)
print("#######n==")
print(n)
-- pretty printing
if (n) then
io.write("+")
end
for i = 1, n do
io.write("--------------------+")
end
print()
end
function makePrintable(s)
-- replace nonprintable characters with ?
if s == nil then
return s
end
local news = ""
for i = 1, #s do
local c = s:sub(i,i)
local b = string.byte(c)
if (b >= 32) and (b <= 126) then
news = news .. c
else
news = news .. '?'
end
end
return news
end
function prettyNewQuery(q)
if DEMO then
if string.find(q, "remote_db") then
-- don't print maintenance queries
return
end
end
list = split(q,',')
for i=1,#list do
io.write(string.sub(list[i],1,40))
print("")
end
--print(greentext("NEW QUERY: ")..makePrintable(q))
end
--
-- Helper functions
--
function dprint(x)
if os.getenv("CRYPTDB_PROXY_DEBUG") then
print(x)
end
end
function read_query_real(packet)
local query = string.sub(packet, 2)
--printred("QUERY: ".. query)
if string.byte(packet) == proxy.COM_INIT_DB then
query = "USE `" .. query .. "`"
end
if string.byte(packet) == proxy.COM_INIT_DB or
string.byte(packet) == proxy.COM_QUERY then
status, error_msg =
CryptDB.rewrite(client, query, proxy.connection.server.thread_id)
if false == status then
proxy.response.type = proxy.MYSQLD_PACKET_ERR
proxy.response.errmsg = error_msg
return proxy.PROXY_SEND_RESULT
end
return next_handler("query", true, client, {}, {}, nil, nil)
elseif string.byte(packet) == proxy.COM_QUIT then
-- do nothing
else
print("unexpected packet type " .. string.byte(packet))
end
end
function printRowsAndFields(inj)
local resultset = inj.resultset
end
function read_query_result_real(inj)
local query = inj.query:sub(2)
prettyNewQuery(query)
if skip == true then
skip = false
return
end
skip = false
local resultset = inj.resultset
if resultset.query_status == proxy.MYSQLD_PACKET_ERR then
return next_handler("results", false, client, {}, {}, 0, 0)
end
local client = proxy.connection.client.src.name
local interim_fields = {}
local interim_rows = {}
if true == g_want_interim then
-- build up interim result for next(...) calls
print(greentext("ENCRYPTED RESULTS:"))
-- mysqlproxy doesn't return real lua arrays, so re-package
local resfields = resultset.fields
printline(#resfields)
if (#resfields) then
io.write("|")
end
for i = 1, #resfields do
rfi = resfields[i]
interim_fields[i] =
{ type = resfields[i].type,
name = resfields[i].name }
io.write(string.format("%-10s|",rfi.name))
end
local resrows = resultset.rows
if resrows then
for row in resrows do
table.insert(interim_rows, row)
io.write("|")
for key,value in pairs(row) do
io.write(string.format("%-20s|", makePrintable(value)))
end
print()
end
end
--printline(#resfields)
end
print(greentext("ENCRYPTED RESULTS END"))
return next_handler("results", true, client, interim_fields, interim_rows,
resultset.affected_rows, resultset.insert_id)
end
local q_index = 0
function get_index()
i = q_index
q_index = q_index + 1
return i
end
function handle_from(from)
if "query" == from then
return proxy.PROXY_SEND_QUERY
elseif "results" == from then
return proxy.PROXY_IGNORE_RESULT
end
assert(nil)
end
function next_handler(from, status, client, fields, rows, affected_rows,
insert_id)
local control, param0, param1, param2, param3 =
CryptDB.next(client, fields, rows, affected_rows, insert_id, status)
if "again" == control then
g_want_interim = param0
local query = param1
proxy.queries:append(get_index(), string.char(proxy.COM_QUERY) .. query,
{ resultset_is_needed = true } )
return handle_from(from)
elseif "query-results" == control then
local query = param0
proxy.queries:append(get_index(), string.char(proxy.COM_QUERY) .. query,
{ resultset_is_needed = true } )
skip = true
return handle_from(from)
elseif "results" == control then
local raffected_rows = param0
local rinsert_id = param1
local rfields = param2
local rrows = param3
if #rfields > 0 then
proxy.response.resultset = { fields = rfields, rows = rrows }
end
proxy.response.type = proxy.MYSQLD_PACKET_OK
proxy.response.affected_rows = raffected_rows
proxy.response.insert_id = rinsert_id
return proxy.PROXY_SEND_RESULT
elseif "error" == control then
proxy.response.type = proxy.MYSQLD_PACKET_ERR
proxy.response.errmsg = param0
proxy.response.errcode = param1
proxy.response.sqlstate = param2
return proxy.PROXY_SEND_RESULT
end
assert(nil)
end
a=`cat all`
final=""
arr=($a)
for item in ${arr[@]};do
final+=" "
final+=${item}
done
echo ${final}
This diff is collapsed.
#include<iostream>
using namespace std;
int main() {
int n;
cin>>n;
cout<<n<<endl;
return 0;
}
###stop gdb
ps aux|grep gdb|grep -v grep|awk '{print $2}'| while read line;do sudo kill -9 $line;done
INSERT INTO table_NJEPWCGNHM VALUES(4830019261483347505 , 211794394337017064 ,' [[ \X` C;Q^D7!{aӹ HaHrn IZ3', 2009773872918125969);
CREATE TABLE `table_HZYLVPMVGY` (
`BGQOHZHXKUoEq` bigint(20) unsigned DEFAULT NULL,
`cdb_saltLOIFAYDHKU` bigint(8) unsigned DEFAULT NULL,
`OXZMXECMWSoEq` varbinary(64) DEFAULT NULL,
`cdb_saltFUSVKZUSWH` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_HZYLVPMVGY VALUES(18434896116467525148 , 3148359767425756829 , 1}3] 9ïc5(;
INSERT INTO table_HZYLVPMVGY VALUES(5090623238524778108 , 13001127548988761583 , ,'nk$["mdjrF]=M# Q&V1^ , 15173015006922872032);
CREATE TABLE `table_HZYLVPMVGY` (
`BGQOHZHXKUoEq` bigint(20) unsigned DEFAULT NULL,
`cdb_saltLOIFAYDHKU` bigint(8) unsigned DEFAULT NULL,
`OXZMXECMWSoEq` varbinary(64) DEFAULT NULL,
`cdb_saltFUSVKZUSWH` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_HZYLVPMVGY VALUES(18434896116467525148 , 3148359767425756829 , 1}3] 9ïc5(;
INSERT INTO table_HZYLVPMVGY VALUES(5090623238524778108 , 13001127548988761583 , ,'nk$["mdjrF]=M# Q&V1^ , 15173015006922872032);
CREATE TABLE `table_MECKFPDWRT` (
`ACZQMYDYCCoEq` bigint(20) unsigned DEFAULT NULL,
`cdb_saltHCOAKOECZX` bigint(8) unsigned DEFAULT NULL,
`ZOQHNQUBUHoEq` varbinary(64) DEFAULT NULL,
`cdb_saltWAFYQTWVRA` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_MECKFPDWRT VALUES(14896568675002651221 , 12603345281697559417 , A[* =1:++cklCX'"PJK'@WoSB , 7795168310715989453);
INSERT INTO table_MECKFPDWRT VALUES(238125294341283945 , 2734853574776537328 , r>YaKx̷JK jnx&*3kOf/ rʆ~ qnF/e , 17891421364865783503);
INSERT INTO table_MECKFPDWRT VALUES(13412398075835996778 , 8813762650369492622 , [O f1><[&}]p%R304H.daeۈN飢|' , 8983174987218051650);
INSERT INTO table_MECKFPDWRT VALUES(16279918343195318743 , 14714266728160164070 , WbEE3pg[0MTL=`Oh
i:Dp , 2213321377861774075);
CREATE TABLE `table_ZNHUAVILZJ` (
`UTILUXJGJCoEq` varbinary(64) DEFAULT NULL,
`cdb_saltCVSZCAWMIE` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_ZNHUAVILZJ VALUES(70FWkPee O]YR X -r , 1762577065314097117);
CREATE TABLE `table_ZNHUAVILZJ` (
`UTILUXJGJCoEq` varbinary(64) DEFAULT NULL,
`cdb_saltCVSZCAWMIE` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_ZNHUAVILZJ VALUES(70FWkPee O]YR X -r , 1762577065314097117);
CREATE TABLE `table_ZNHUAVILZJ` (
`UTILUXJGJCoEq` varbinary(64) DEFAULT NULL,
`cdb_saltCVSZCAWMIE` bigint(8) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO table_ZNHUAVILZJ VALUES(70FWkPee O]YR X -r , 1762577065314097117);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment