Recently Updated Pages
Localhost/127/UnixSocket
question这是 MySQL 客户端的默认行为!当你在配置文件中指定 host=localhost 时,MySQL 客户端会自动尝试使用 Unix socket 连接,但如果 Unix s...
SLS
Request URI '/' 分析语法* | select * where request_uri like '/%' and length(request_uri) = 1 扫描模式*...
Latency
Time Cost curl -o /dev/null -s -w" time_namelookup: %{time_namelookup}s\n\ time_connect:...
pt-table-sync
Usage Print Diff pt-table-sync \ --print \ --chunk-size=1000 \ h=master_host,P=3306,u=root...
pt-table-checksum
Installation apt-get -y install percona-toolkit Priviledges 目标库 GRANT SELECT ON foo.* TO 'pttab...
SSH Tunnel
本地端口转发 Localhost 访问本地 http://localhost:8080 会转发到 192.168.x.x 的 localhost:8080。 在本机执行ssh -NL 8080...
Quick Count
使用最小覆盖索引 针对 InnoDB 表(几十万到几百万行)快速统计行数,可以有几个方法。下面按实用性和效率排序: 选择最窄的索引列(最好是整型或短列)进行扫描,不访问表数据页。 假设你有一...
MyDumper
https://mydumper.github.io/mydumper/docs/html/index.html Installation macOS brew install mydumper
Commands
Get NIC/IP Wiredifconfig en0 Wi-Fiifconfig en1 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMP...
Install Java8 on macOS
Oracle 1.8 is only support x86. Azul Zulu JDK 8 brew install --cask zulu@8 java -versionopenjdk...