sudo arp-scan --localnet \
| awk 'NR>2 && $1~/^[0-9]+\./ { ip=$1; mac=$2; cnt[ip]++; macs[ip]=(ip in macs)?macs[ip]","mac:mac } END { for(i in cnt) if(cnt[i]>1) printf "%s %d %s\n", i, cnt[i], macs[i] }' \
| sort -k2,2nr
mydumper -h 11.22.33.44 -u root -P3307 -p pAssw0rd -B myschema -t 4 -o myschema_dump/
myloader -h <cluster_dns_endpoint> -u master -p pAssw0rd -P 3307 -B myschema -t 4 -d myschema_dump
# vim my.load
LOAD DATABASE
FROM mysql://root:[email protected]:3307/demo_db?useSSL=false
INTO postgresql://postgres:123123@@[email protected]:5432/postgres?demo_db
with prefetch rows = 500
WITH include drop, create tables, create indexes, workers = 1, concurrency = 1
;
# 运行
- pdmaner, 蓝奏云下载
- dbeaver(推荐,可以连接很多数据库)
- navicate (可以比对数据库结构)
- DbVisualizer (还没咋使用)
- heidisql (小巧,只有win,linux可以使用)
- Jailer (方便查数据,以及数据之间的关系,需要事先自定义)
ssh -L 8086:localhost:8086 [email protected]
iptables -t nat -A PREROUTING -p tcp --dport 63306 -j DNAT --to-destination 192.168.1.2:3306
NewerOlder