上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 52 下一页
摘要: 环境:OS:Centos 7DB:kingbaseV8R6 说明:kingbase读写分离集群是部署了repmgr、kbha、自带vip转移功能. 1.主从节点都采用full模式安装full模式安装会初始化数据库(initdb)数据库配置:a.大小写不敏感b.采用utf8字符集c.兼容oracle模 阅读全文
posted @ 2024-02-29 10:44 slnngk 阅读(1050) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7ES:6.8.5 1.查看索引的设置curl -u elastic:123456 -XGET "http://192.168.1.69:19200/hospital_info_demo3/_settings?pretty" 2.搜索部分设置query和fetch慢查询 c 阅读全文
posted @ 2024-02-28 09:35 slnngk 阅读(614) 评论(0) 推荐(0)
摘要: 操作kingbase与操作pg一样,需要psycopg2这个包 #!/usr/bin/env python #coding=utf-8 import os, json, urllib, datetime, shutil import psycopg2 import traceback import 阅读全文
posted @ 2024-02-22 14:55 slnngk 阅读(304) 评论(0) 推荐(0)
摘要: [kingbase@localhost bin]$ ./ksql -p 54321 -U system -d test -W Password: Type "help" for help. test=# show enable_ci; enable_ci on (1 row) on:大小写不敏感of 阅读全文
posted @ 2024-02-22 14:32 slnngk 阅读(730) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7原db:5.6新db:5.7 执行升级命令报如下错误 [root@hadoop-slave1 mysql]# /home/middle/mysql57/bin/mysql_upgrade -s -h localhost -pyeemiao3040 -P13306 -S / 阅读全文
posted @ 2024-02-21 09:52 slnngk 阅读(175) 评论(0) 推荐(0)
摘要: 环境: OS:Centos6 db:mysql 5.7 机器:192.168.1.92 1.修改启动文件 /etc/init.d/mysqld #!/bin/sh # Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & D 阅读全文
posted @ 2024-02-20 11:41 slnngk 阅读(82) 评论(0) 推荐(0)
摘要: 1.查看SYSADM_GROUP[db2inst1@localhost ~]$ db2 get dbm cfg|grep SYSADM_GROUP SYSADM group name (SYSADM_GROUP) = DB2INST1 2.创建操作系统账号useradd -u 1004 -G db2 阅读全文
posted @ 2024-02-06 14:51 slnngk 阅读(81) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:11.5.6 1.导出备份[db2inst1@localhost /]$ mkdir -p /tmp/mybak[db2inst1@localhost /]$ cd /tmp/mybak [db2inst1@localhost mybak]$ db2move db_ 阅读全文
posted @ 2024-02-05 10:28 slnngk 阅读(225) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 DB:V11.5.6 1.导出表(默认是逗号分隔)db2 connect db_hxldb2 EXPORT TO /tmp/tb_test.txt OF del "SELECT * FROM tb_test01" 文件内容: [root@localhost tmp]# 阅读全文
posted @ 2024-02-01 17:06 slnngk 阅读(68) 评论(0) 推荐(0)
摘要: 主库:192.168.1.135 host135从库:192.168.1.134 host134 说明:a.主库已经运行并有数据库DB_HXL可以使用如下命令查看:db2 list database directory b.主数据库已经处于归档模式,做了主备后,备库也会是归档模式,归档路径与主库配置 阅读全文
posted @ 2024-02-01 10:40 slnngk 阅读(557) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:v11.5.6 主库:192.168.1.135 host135从库:192.168.1.134 host134 说明:a.主库已经运行并有数据库DB_HXL,DB_HXL01可以使用如下命令查看:db2 list database directory b.主数据库 阅读全文
posted @ 2024-01-30 17:21 slnngk 阅读(184) 评论(0) 推荐(0)
摘要: 环境: Os:Centos 7 DB:V11.5.6 1.查看数据库是否处于归档模式 [db2inst1@host135 SQL00001]$ db2 get db cfg for db_hxl|grep LOGARCH First log archive method (LOGARCHMETH1) 阅读全文
posted @ 2024-01-25 09:59 slnngk 阅读(268) 评论(0) 推荐(0)
摘要: 环境 OS:Centos 7 DB:11.5.6 1.登录数据库 [db2inst1@host135 SQL00001]$ db2 db2 => connect to db_hxl 2.列出当前实例上所有的数据库 [db2inst1@host135 backup]$ db2 list databas 阅读全文
posted @ 2024-01-25 09:07 slnngk 阅读(39) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:v11.5.6 1.解压[root@host135 db2]# tar -xvf v11.5.6_linuxx64_server_dec.tar.gz[root@host135 db2]# mv server_dec /opt/db2 2.检查安装环境[root@h 阅读全文
posted @ 2024-01-24 13:46 slnngk 阅读(299) 评论(0) 推荐(0)
摘要: [root@localhost scripts]# more run_mongodb_cmd.sh #!/bin/bash /usr/local/services/mongodb/bin/mongo localhost:28001 << EOF use admin db.auth("root","1 阅读全文
posted @ 2024-01-23 14:47 slnngk 阅读(92) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:4.4.13 1.创建账号并授权(在admin下创建账号) /usr/local/services/mongodb/bin/mongo localhost:28001 use admin db.auth("root","root123"); db.createUse 阅读全文
posted @ 2024-01-22 17:33 slnngk 阅读(20) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7db:4.4.13 1.下载相应的版本https://www.mongodb.com/download-center/community我这里下载的是mongodb-linux-x86_64-rhel70-4.4.13.tgz 2.创建安装目录[root@test ser 阅读全文
posted @ 2024-01-22 14:07 slnngk 阅读(58) 评论(0) 推荐(0)
摘要: 如下图; 阅读全文
posted @ 2024-01-18 10:18 slnngk 阅读(22) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7ES:6.8.5 1.查看当前的安装的插件[root@hadoop-slave1 soft]# curl -u elastic:123456 -X GET "http://192.168.1.63:19200/_cat/plugins?v&s=component&h=na 阅读全文
posted @ 2024-01-18 10:07 slnngk 阅读(774) 评论(0) 推荐(0)
摘要: 环境: OS:windows server 2019 db:sql server 2012 阅读全文
posted @ 2024-01-12 17:23 slnngk 阅读(31) 评论(0) 推荐(0)
摘要: 环境: python:3.6.5 pymssql:2.1.5 db:sql server 2012 #!/usr/bin/env python #coding=utf-8 import os, json, urllib, datetime, shutil import time import pym 阅读全文
posted @ 2024-01-10 16:02 slnngk 阅读(111) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7DB:sql server 2017 1.数据存放目录:[root@cdc-henan-cdhworker02 data]# pwd/var/opt/mssql/data 2.登录查询(必须输入go):sqlcmd -S localhost -U sa -P 'Aa123 阅读全文
posted @ 2024-01-04 14:09 slnngk 阅读(53) 评论(0) 推荐(0)
摘要: 1.查看当前的虚拟机 C:\Users\Administrator>cd C:\Program Files\Oracle\VirtualBox C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms "12C-rac01-ogg" {0f 阅读全文
posted @ 2023-12-28 09:28 slnngk 阅读(635) 评论(0) 推荐(0)
摘要: 环境:OS:Centos 7 1.想要对虚拟网卡virbr0网卡进行操作,首先要安装kvm虚拟化管理命令;yum -y install libvirt virt-install qemu-kvm2. 删除默认网络defaultvirsh net-destroy default 3. 取消定义网络de 阅读全文
posted @ 2023-12-26 14:57 slnngk 阅读(1236) 评论(0) 推荐(0)
摘要: 环境: OS:Centos 7 虚拟机:virtual box 1.重新生成各网卡uuid[root@rac02 network-scripts]# uuidgen enp0s8854a8d63-52ba-4dcc-8131-1fb5d98e054a [root@rac02 network-scri 阅读全文
posted @ 2023-12-26 14:31 slnngk 阅读(171) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 52 下一页