一、MMM简介MMM即Multi-MasterReplicationManagerforMySQL:mysql多主复制管理器,基于perl实现,关于mysql主主复制配置的监控、故障转移和管理的一套可伸缩的脚本套件(在任何时候只有一个节点可以被写入),MMM也能对从服务器进行读负载均衡,所以可以用它来在一组用于复制的服务器启动虚拟ip,除此之外,它还有实现数据备份、节点之间重新同步功能的脚本。My
分类:
数据库 时间:
2020-07-19 11:26:16
阅读次数:
163
安装 pip install alembic 初始化 alembic init alembic 修改配置alembic.ini sqlalchemy.url = driver://user:pass@localhost/dbname 修改env.py import sys from logging. ...
分类:
数据库 时间:
2020-07-19 11:23:58
阅读次数:
76
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 using namespace std; 6 7 int main() 8 { 9 vector<int> nums{1,3,4,6,5,3,2,4,7,5}; ...
分类:
编程语言 时间:
2020-07-19 00:53:48
阅读次数:
95
class OpenXmlDemo { /* * excel 对象结构 * SpreadsheetDocument * 》WorkbookPart * 》WorksheetPart * 》Worksheet * 》SheetData * 》WorksheetPart * 》Worksheet * 》 ...
分类:
其他好文 时间:
2020-07-19 00:41:10
阅读次数:
54
盒模型主要有四个区域: 内容content 内边距padding 外边距margin 边框border 实现让块状元素居中 margin:auto; margin:上 右 下 左 上下外边距合并 ...
分类:
Web程序 时间:
2020-07-18 22:27:34
阅读次数:
79
前期数据准备 通过程序往数据库插入 50w 数据 数据表: CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_date` datetime NOT NULL, `time_timestamp` timestamp N ...
分类:
数据库 时间:
2020-07-18 16:02:17
阅读次数:
70
1. 创建表——create create table t_article( id int(11) primary key auto_increment, name varchar(255) not null )engine=innodb default charset=utf8; 2. 修改表—— ...
分类:
其他好文 时间:
2020-07-18 00:54:10
阅读次数:
91
https://mp.weixin.qq.com/s/2obpN57D8hyorCMnIu_YAg ...
分类:
其他好文 时间:
2020-07-18 00:37:13
阅读次数:
99
* 概念: 对表中的数据进行限定,保证数据的正确性、有效性和完整性。 * 分类: 1. 主键约束:primary key 2. 非空约束:not null 3. 唯一约束:unique 4. 外键约束:foreign key * 非空约束:not null,值不能为null 1. 创建表时添加约束 ...
分类:
数据库 时间:
2020-07-18 00:31:42
阅读次数:
90
play_record表设计 DROP TABLE IF EXISTS `play_record`; CREATE TABLE `play_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, ...
分类:
其他好文 时间:
2020-07-17 16:06:01
阅读次数:
74