Go语言入门1.4 包
每个 Go 程序都是由包构成的。
程序从 main 包开始运行。
先看一个例子
package main
import (
    "fmt"
    "math/rand"
)
func main() {
    fmt.Println("My favorite number is", rand.Intn(10))
}
                每个 Go 程序都是由包构成的。
程序从 main 包开始运行。
先看一个例子
package main
import (
    "fmt"
    "math/rand"
)
func main() {
    fmt.Println("My favorite number is", rand.Intn(10))
}
                /usr/local/etc/my.cnf
找到了my.cnf 
将 
log-bin=mysql-bin 
binlog_format=mixed 
这两条注释掉即可.
# Replication Master Server (default)
# binary logging is required for replication
#log-bin=mysql-bin
# binary logging format - mixed recommended
#binlog_format=mixed重启mysql吧