摘要:
golang 语言,在打开mysql DB时,有时会用到timeout,readTimeout两个参数。 1.timeout 建立连接超时时间 例如, "30s", "0.5m" or "1m30s". 2.readTimeout I/O读超时时间 例如, "30s", "0.5m" or "1m3 阅读全文
posted @ 2018-12-23 17:18 翔云123456 阅读(1279) 评论(0) 推荐(0)
|
摘要:
golang 语言,在打开mysql DB时,有时会用到timeout,readTimeout两个参数。 1.timeout 建立连接超时时间 例如, "30s", "0.5m" or "1m30s". 2.readTimeout I/O读超时时间 例如, "30s", "0.5m" or "1m3 阅读全文
posted @ 2018-12-23 17:18 翔云123456 阅读(1279) 评论(0) 推荐(0)
摘要:
问题 执行show master status,输出结果为空: 原因 mysql没有开启日志。 查看log_bin选项: 可以看到log_bin是OFF. 解决方法 在mysql 配置文件 /etc/my.cnf中 [mysqld]下添加: log bin配置项表示binlog的base name, 阅读全文
posted @ 2018-12-23 16:20 翔云123456 阅读(7094) 评论(0) 推荐(0) |
||