主库IP:192.168.1.156Hostname:CNDB01从库IP:192.168.1.157Hostname:CNDB021.安装:yum-yinstallmysql2.配置主服务器mysql文件:#vim/etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sock[mysqld_safe]log-er
                            
                            
                                分类:
数据库   时间:
2020-02-20 10:22:10   
                                阅读次数:
79
                             
                    
                        
                            
                            
                                cube.js 从那发布,到现在也已经有了很大的变动了,比如多租户,多数据源的支持,同时schema 也有了好多新的 类型支持,以下是基于新版本的一个学习 通用格式参考 cube(`Users`, { sql: `select * from users`, ? joins: { Organizati ...
                            
                            
                                分类:
Web程序   时间:
2020-02-18 22:04:27   
                                阅读次数:
111
                             
                    
                        
                            
                            
                                    He is my test step: In a test enviroument, I make a table "test"/ demo table:create table test ( a nvharchar(100)); trigger record table:CREATE TABLE  ...
                            
                            
                                分类:
数据库   时间:
2020-02-16 21:08:08   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                    JDK Byte Buffer的缺点:长度是固定的,不能动态扩容,API使用复杂,因此Netty封装了自己ByteBuf,Bytebuf有三个重要属性:Capacity容量、readerIndex读取位置和writerIndex写入位置,提供两个指针来支持顺序读写操作.同时三者满足如下关系:0<=r ...
                            
                            
                                分类:
Web程序   时间:
2020-02-14 18:05:42   
                                阅读次数:
100
                             
                    
                        
                            
                            
                                1.如果没有数据,或者运行初始化,那么直接在偏好设置里,点击Initialize Database即可 2. 有数据下修改(还没验证) (1)关闭服务sudo /usr/local/mysql/support-files/mysql.server stop (2)安全模式下启动sudo /usr/l ...
                            
                            
                                分类:
数据库   时间:
2020-02-14 16:19:09   
                                阅读次数:
66
                             
                    
                        
                            
                            
                                    环境如下: Hadoop 2.6.0以上 java JDK 1.7以上 Spark 3.0.0-preview2 一、Scala独立应用编程 1、安装sbt sbt是一款Spark用来对scala编写程序进行打包的工具,这里简单介绍sbt的安装过程,感兴趣的读者可以参考官网资料了解更多关于sbt的内 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-13 22:31:48   
                                阅读次数:
103
                             
                    
                        
                            
                            
                                暴力搜索加剪枝~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; const int inf=1e9; int g[maxn][maxn]; int c[maxn]; int N,M; int mincost=1e9 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-13 13:09:45   
                                阅读次数:
72
                             
                    
                        
                            
                            
                                    原题链接在这里:https://leetcode.com/problems/design-bounded-blocking-queue/ 题目: Implement a thread safe bounded blocking queue that has the following methods ...
                            
                            
                                分类:
其他好文   时间:
2020-02-13 09:51:44   
                                阅读次数:
70
                             
                    
                        
                            
                            
                                To use EMC NW NMM to backup MS SQL always on database, that is a simple and safe way to protector data. Here is an example. node1,node2,node3 they are ...
                            
                            
                                分类:
其他好文   时间:
2020-02-12 22:07:44   
                                阅读次数:
71
                             
                    
                        
                            
                            
                                    ```python [mysqld_safe] pid-file=/project/class2/mysql/run/mysqld.pid #malloc-lib=/project/class2/mysql/lib/libjemalloc.so [mysql] port=3306 prompt=\\... ...
                            
                            
                                分类:
数据库   时间:
2020-02-11 16:18:06   
                                阅读次数:
97