在从数据库中查询 show slave status Slave_SQL_Running: No 1、程序可能在从数据库中进行了写操作 2、也可能是从数据库 机器重启后,事务回滚造成的。 解决方法 在主库中查询 Show master status; 在从库中执行 STOP SLAVE; CHANG ...
分类:
数据库 时间:
2020-11-18 13:27:25
阅读次数:
33
本地回退到上一版本 git reset –hard HEAD^ 本地回退到上上个版本 git reset –hard HEAD~2 本地回退到指定项(根据log的提交id来回退) git log git reset –hard commit_id 强制把本地推到远程master分支 git push ...
分类:
其他好文 时间:
2020-11-17 13:01:28
阅读次数:
23
环境:tidb4.0、centos7 1、tidb操作停止启动、重启 tiup cluster stop tidb tiup cluster start tidb tiup cluster restart tidb 2、tidb查看参数配置sql命令 SHOW CONFIG WHERE type = ...
分类:
数据库 时间:
2020-11-16 13:14:28
阅读次数:
11
mongodb 官方的go驱动包 go.mongodb.org/mongo-driver 使用起来比较繁琐,最近对其进行了二次封装 github地址:https://github.com/w3liu/go-common/tree/master/store/mongo测试用例如下: func Test ...
分类:
数据库 时间:
2020-11-13 13:16:09
阅读次数:
40
Go新版泛型使用:80余行代码构建一个哈希表2018年,我使用Go语言实现了一个玩具性质的哈希表(1),以便学习Go的map等数据类型如何工作。这个版本只支持字符串作为key以及value。1.https://github.com/mdlayher/misc/blob/master/go/algorithms/hashtable/hashtable.go两年后的2020年6月,Go团队发布了一篇题
分类:
其他好文 时间:
2020-11-13 12:35:22
阅读次数:
3
Last_IO_Errno: 1129 Last_IO_Error: error connecting to master 'slavetest@xxx.xxx.xxx.xx:6612' - retry-time: 60 retries: 1 message: Host 'xxx.xxx.xxx.x ...
分类:
数据库 时间:
2020-11-10 11:23:28
阅读次数:
13
操作系统 进程和线程 基本概念 通信 进程间通信 线程间通信 线程间同步方式 有进程后为什么需要线程 单核机器上写多线程程序是否考虑要加锁? 线程需要保存哪些上下文,SP、PC、EAX这些寄存器是干嘛用的 多进程和多线程的使用场景 并发和并行 Linux虚拟内存空间 程序的内存结构 缺页中断 页表寻 ...
分类:
其他好文 时间:
2020-11-10 11:11:11
阅读次数:
5
public partial class App : Application { public App() { this.Startup += (o1, e1)=>{ string commandLine = Environment.CommandLine; string appFilePath = ...
分类:
移动开发 时间:
2020-11-08 17:59:30
阅读次数:
30
本篇博客基于中科大软件学院孟宁老师的高级软件工程课程内容,结合课程项目案例https://github.com/mengning/menu 分析其中的软件工程方法、规范或软件工程思想。 参考资料见:https://gitee.com/mengning997/se/blob/master/README ...
分类:
其他好文 时间:
2020-11-08 17:42:27
阅读次数:
29
# 放弃merger master到mzhuo分支的代码,甚至之后新提交的代码也放弃(最终git上没有操作记录) # 前期进入分支操作 1 cd Documents/Yv/ 2 ls 3 git status 4 git pull origin 5 git branch 6 git checkout ...
分类:
其他好文 时间:
2020-11-07 16:25:13
阅读次数:
19