[MySQL] MySQL 连接数和状态查看

MySQL 连接数和状态查看 mysql的最大连接数默认是100, 最大可以达到16384 查看mysql服务器最大连接数 1 2 mysql> show variables like '%max_connections%'; mysql> select @@max_connections; 设置mysql

[Go] Golang Context

Golang Context Context 接口 1 2 3 4 5 6 7 8 9 type Context interface { Deadline() (deadline time.Time, ok bool) Done() <-chan struct{} Err() error Value(key interface{}) interface{} } context包提供暴露Context接口可以在多个Goroutine共享数

[Go] Golang Channel

Don’t communicate by sharing memory, share memory by communicating. 介绍 channel是GO语言级别提供的goroutine间的通信方式,channel是类型相关的,需要在声明channel

[VIM] Vim实用小技巧

Vim实用小技巧 插入递增数字 let i=0 | g/toPlaced/s//\=i/ |let i=i+1 这条命令由三部分组成: let i=1 和 let i=i+1 构成了一个变量递增的循环。 g命令用于全局查找一个字符串,并对此字符串