按类别查询搜索结果
关于关键词 的检测结果,共 3862
【Mysql/postgreSQL】 postgres日志到表里
hxl | 2018-08-31 14:28:49 | 阅读(0) | 评论(0)
1.修改 postgresql.conf配置文件,修改内容如下:log_destination = 'csvlog'logging_collector = onlog_directory = '/db/pgsql/pg_log'log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'2.重启动pgpg_ctl -D /db/pgsql/data stoppg_ctl -D /db/pgsql/data start3.登陆数据库创建表[postgres@localhost data]$ ...【阅读全文】
【Mysql/postgreSQL】 pg_rman部署
hxl | 2018-08-31 11:35:53 | 阅读(3860) | 评论(0)
环境OS:Centos 7PG_RMAN:1.3.6PG:10.41.下载地址https://github.com/ossc-db/pg_rman/releases,选择相应版本我下载的是pg_rman-1.3.6-1.pg10.rhel7.x86_64.rpm2.安装[root@localhost soft]# rpm -ivh  pg_rman-1.3.6-1.pg10.rhel7.x86_64.rpmerror: Failed dependencies:     ...【阅读全文】
mfc42d | 2018-08-28 17:37:04 | 阅读(1390) | 评论(0)
windows下安装mysql 5.7首先必须运行在Administrator权限下面创建data目录运行 UPDATE. authentication_string () password_expired ;FLUSHPRIVILEGES【阅读全文】
【Mysql/postgreSQL】 rdsbinlog
hxl | 2018-08-24 10:41:30 | 阅读(0) | 评论(0)
[root@localhost rdsbak]# more binglog_test.py #!/usr/bin/env python#coding=utf-8import os, json, urllib, datetime, shutilfrom aliyunsdkcore import clientfrom aliyunsdkrds.request.v20140815 import DescribeBackupsRequest...【阅读全文】
【Mysql/postgreSQL】 rds备份
hxl | 2018-08-22 17:48:57 | 阅读(0) | 评论(0)
[root@localhost rdsbak]# more rm-wz9ln5w0on11z38i8.py#!/usr/bin/env python#coding=utf-8import os, json, urllib, datetime, shutilfrom aliyunsdkcore import clientfrom aliyunsdkrds.request.v20140815 import DescribeBackupsRequest...【阅读全文】
【Mysql/postgreSQL】 二进制postgresql(10.1)
hxl | 2018-08-06 16:30:48 | 阅读(3920) | 评论(0)
1.下载下载地址:[root@localhost tmp]# wget https://get.enterprisedb.com/postgresql/postgresql-10.1-1-linux-x64-binaries.tar.gz2.解压部署到目录tar zxvf postgresql-10.4-1-linux-x64-binaries.tar.gz -C /db3.新建用户和用户组groupadd postgresuseradd -g postgres postgres4.创建数据及日志目录,并做...【阅读全文】
浅色年华 | 2018-08-03 13:44:53 | 阅读(1150) | 评论(0)
本节演示如何为 MySQL 数据库提供持久化存储,步骤为:创建 PV 和 PVC。向 MySQL 添加数据。验证数据一致性。首先创建 PV 和 PVC,配置如下:mysql-pv.yml创建 mysql-pv 和 mysql-pvc:...【阅读全文】
skykiker | 2018-07-30 01:27:24 | 阅读(4320) | 评论(0)
PostgreSQL逻辑订阅处理流程解析【阅读全文】
douyaqiang123 | 2018-07-27 11:15:51 | 阅读(0) | 评论(0)
    1.网络参数配置    net.core.somaxconn=65536 #每个监听端口允许的最大的监听队列长度,这个值应该适当增大。    net.ipv4.tcp_max_syn_backlog=65536 #还未获得链接的请求可保持在队列中的数量,当超过这个数目是,链接请求就可能被抛弃   ...【阅读全文】
dbwatcher | 2018-07-23 17:06:23 | 阅读(2850) | 评论(0)
博客文章除注明转载外,均为原创。转载请注明出处。本文链接地址:http://blog.chinaunix.net/uid-31396856-id-5787793.html1、介绍     MySQL 8.0实现了直方图的统计。数据字典表column_statistics储存了相关列值的直方图统计信息,提供列数据分布情况,以用于优化器构建查询执行计划。执行ANALYZE TAB...【阅读全文】
mingfei10 | 2018-07-11 15:32:02 | 阅读(1500) | 评论(0)
转自:https://www.cnblogs.com/pyspark/p/7763241.html前言      本篇博客将在上一篇的基础上,继续为大家梳理约束相关的知识,前面我们学习了Primary key和unique key方面的知识,本节我们专注于解决使用外键来定义表和表之间的三种关系:多对一,多对多,一对一。本次博客的内容比较重要,希望大家好好...【阅读全文】
【Mysql/postgreSQL】 MySQL--索引条件推优化
大镇 | 2018-07-09 16:18:44 | 阅读(1750) | 评论(0)
http://blog.163.com/li_hx/blog/static/1839914132015782821512/【阅读全文】
大镇 | 2018-07-09 11:40:23 | 阅读(1260) | 评论(0)
转自:https://www.cnblogs.com/katec/p/9276746.html专注MySQL、Python。QQ讨论群:中国MySql第一社区 457697103MySQL是自动会选择它认为好的执行划,但是MySQL毕竟是程序,还没有达到像人类思考这么智能,还是通过一些按部就班的算法实现最优执行计划(基于cost)的选择。下面就是一个真实的案例,带你来看看MySQL也...【阅读全文】
【Mysql/postgreSQL】 简单几招提高MySQL全性
浅色年华 | 2018-07-06 15:28:39 | 阅读(790) | 评论(0)
导读如何提高MySQL的安全性关于 datadir 正确的权限模式是 0750,甚至是 0700。最好是直接设置成 0700,相对更安全些,避免数据文件意外泄漏。[yejr@imysql.com]# chown -R mysql.mysql /data/mysql57 [yejr@imysql.com]# chmod 0700 /data/mysql57 [yejr@imysql.com]# ls -la /data/ drwxr...【阅读全文】
【Mysql/postgreSQL】 gp的资源队列
lyk3344 | 2018-06-28 19:25:05 | 阅读(0) | 评论(0)
  Gp的资源管理队列 Gp可以通过resource queue来限制用户使用系统的资源,gp是通过用户可以执行并发的sql数量、每个sql的cost、sql的优先级来限制用户对gp资源的使用 一般,系统根据公司对gp的使用情况分为:系统报表计算:为业务系统计算报表,需要特殊保证的,不...【阅读全文】
【Mysql/postgreSQL】 gp增standby
lyk3344 | 2018-06-28 19:15:03 | 阅读(0) | 评论(0)
按master的步骤设置好环境后,执行以下即成功了。 [gpadmin@gp-node1 ~]$ gpinitstandby -s gp-node420170704:13:45:35:172558 gpinitstandby:gp-node1:gpadmin-[INFO]:-Validating environment and parameters for standby initialization......【阅读全文】
【Mysql/postgreSQL】 gp增mirror测试
lyk3344 | 2018-06-28 19:13:41 | 阅读(0) | 评论(0)
 查看数据库当前节点信息test1=# select dbid,content,role,port,hostname,address from gp_segment_configuration order by dbid; dbid | content | role | port  | hostname | address  ...【阅读全文】
【Mysql/postgreSQL】 greenplum5.1
lyk3344 | 2018-06-28 19:11:30 | 阅读(0) | 评论(0)
 OS: Red Hat Enterprise Linux (RHEL) 64-bit 6.x or 7.xFile System: xfs(ext3 supported for root file system)Minimum CPU: Pentium Pro compatible (P3/Athlon and above)...【阅读全文】
【Mysql/postgreSQL】 mysql用量
lyk3344 | 2018-06-28 18:04:12 | 阅读(0) | 评论(0)
Mysql内存使用计算: Used_Mem = key_buffer_size+ query_cache_size+ innodb_buffer_pool_size+ innodb_additional_mem_pool_size+ innodb_log_buffer_size+ max_connections * (read_buffer_size+ read_rnd_buffer_size...【阅读全文】
mfc42d | 2018-06-25 18:24:17 | 阅读(1710) | 评论(0)
很多人给的解决方案是这样的,修改 /etc/my.cnf , 然后重启服务.点击(此处)折叠或打开[mysqld] skip-host-cacheskip-name-resolve【阅读全文】