Wesley13 Wesley13
4年前
Mysql半同步加orchestrator
Github基于Orchestrator,Consul和GLB实现高可用性目标。1.orchestrator用来运行故障监听和故障恢复。我们使用了如下图所示的一个跨数据中心的orchestrator/raft。2.Hashicorp公司的用于服务发现的Consul。使用Consul的KV存储器写入集群主节点的身份。对于每个集群,都有一套KV记录
Stella981 Stella981
4年前
Golang实现mysql where in 查询
一、第一种写法首先说一下遇到的一个问题sql:convertingargument$1type:unsupportedtype\\int,asliceofint!(https://oscimg.oschina.net/oscnet/a7fd2fce4a6a022c6ab3452d487f6ec83fe.png
Wesley13 Wesley13
4年前
Linux下MySQL自启动
命令echo"servicemysqldstart"/etc/rc.local或者进入/etc/目录,直接vimrc.local编辑rc.local文件,在最后一行添加“servicemysqldstart”,保存退出bash:/etc/rc.local:Permissiondenied分析:bash返回 /etc/rc
Wesley13 Wesley13
4年前
Update operation with Mysql JSON data
Sincetheinitialvalueof'$.categories'wouldbeaemptystringduetoaapplicationbug,wehavetoremoveitbeforeappending anyitemintothecategoriesarray.UPDATEsubscr
Wesley13 Wesley13
4年前
mysql 计算时间函数差
根据时间计算时间差函数TIMESTAMPDIFF(unit,begin,end)unit支持的单位有:MICROSECOND,SECOND,MINUTE,HOUR,DAY,WEEK,MONTH,QUARTER,YEAR.begin,end不需要相同的数据结构,可以存在一个为
Wesley13 Wesley13
4年前
mysql常见的存储引擎
_1.什么是存储引擎_   不同的技术以及配套的相关功能在MySQL中被称作存储引擎。存储机制、索引技巧、锁定水平等等。_2.常见操作_  查看默认存储引擎    showvariableslike'%engine%';  查看数据库支持的存储引擎    showengines\\G;    show
Stella981 Stella981
4年前
Linux下MySQL基本操作
!(https://oscimg.oschina.net/oscnet/eb0984dc65db419eafc7239e0d5fe7c6.gif)!(https://oscimg.oschina.net/oscnet/b426db74ddb9461483712d0847dfac0d.jpg)连接到本机上的MyS
Wesley13 Wesley13
4年前
mysql数据库备份
importjava.io.BufferedReader;importjava.io.BufferedWriter;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjava.io.IOException;i
Wesley13 Wesley13
4年前
MySQL基础及优化技术
MySQL优化技术Query语句优化基本思路和原则(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fnote.youdao.com%2Fnoteshare%3Fid%3D9a132603087e6472d14e776668fb8b0a)Explain命令详解(