两个假设:
- 每个表一个单独sql
- 不导出行头
代码:
package main
import (
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strings"
)
func main() {
if len(os.Args) != 3 {
fmt.Println("Usage:\n mysql2csv <input> <output>")[......]
两个假设:
代码:
package main
import (
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strings"
)
func main() {
if len(os.Args) != 3 {
fmt.Println("Usage:\n mysql2csv <input> <output>")[......]
redsocks是一款tcp -> 代理服务器的透明代理,使用它结合iptables,可以实现Linux下的全局代理。
1 安装
sudo apt-get install redsocks
2 配置
3 iptable规则:redsoc[......]
1 git + socks5
# ~/.ssh/config
# 在需要的host下设定
ProxyCommand connect-proxy -5 -R remote -S ip:port %h %p
2 Maven + http
# ~/.m2/settings.xml
<proxies>
<proxy>
<id>nexus</id>
<activ[......]
wget --no-check-certificate https://xxx
[......]