MYSQL MGR 单写 A new primary切换
摘要:在MGR下,当主节点关掉后,在其他节点可以看到哪个节点为是新的主节点 [root@win2 logs]# tail -n 10 alert_3306.log 2020-11-19T12:19:42.561360Z 4 [Note] Plugin group_replication reported:
阅读全文
posted @
2020-11-20 00:55
InnoLeo
阅读(201)
推荐(0) 编辑
MYSQL MGR 单写
摘要:1.MYSQL配置文件 [root@win1 3306]# cat my.cnf [client] default-character-set = uft8 port = 3306 socket = /data/3306/tmp/mysql.sock [mysql] prompt="\u@mysql
阅读全文
posted @
2020-11-20 00:16
InnoLeo
阅读(110)
推荐(0) 编辑
MySQL PXC 高可用集群搭建
摘要:1.准备环境 --用户用户组 groupadd mysql useradd -g mysql mysql --目录 mkdir -p /data/PXC/{data,redo,binlog,tmp,logs} chown -R mysql:mysql /data/PXC chmod -R 755 /
阅读全文
posted @
2020-11-18 23:02
InnoLeo
阅读(333)
推荐(0) 编辑
mydump 备份数据库
摘要:mysqldump 备份 $ mysqldump --login-path=d1 --all-databases > /data/all.sql Warning: A partial dump from a server that has GTIDs will by default include
阅读全文
posted @
2020-11-18 10:34
InnoLeo
阅读(310)
推荐(0) 编辑
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.
摘要:mysql 导入数据出现问题 [root@mar data]# mysql -uroot -p'1' --socket=/tmp/mysql3306.sock </data/all.sql mysql: [Warning] Using a password on the command line i
阅读全文
posted @
2020-11-18 10:32
InnoLeo
阅读(1283)
推荐(0) 编辑
RAC 删除节点
摘要:环境: cat /etc/redhat-release sqlplus -v olsnodes -n -i -s -t OS: [root@hzcity ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 (
阅读全文
posted @
2020-11-12 19:06
InnoLeo
阅读(215)
推荐(0) 编辑
RAC 安装后 sqlplus Connected to an idle instance.
摘要:问题,RAC安装后一切正常,但是sqlplus 进入空闲连接 [oracle@hzcity dbs]$ sqlplus / as sysdba SQL*Plus: Release 12.2.0.1.0 Production on Wed Nov 11 18:26:07 2020 Copyright
阅读全文
posted @
2020-11-11 19:08
InnoLeo
阅读(526)
推荐(0) 编辑
ORALCE RAC之DNS设定
摘要:1.安装DNS包 yum -y install bind 2.配置 设定/etc/named.conf, 只更改颜色标示部分 cat /etc/named.conf |grep -v ^#|grep -v ^$|grep -v ^// options { listen-on port 53 { an
阅读全文
posted @
2020-11-11 00:42
InnoLeo
阅读(417)
推荐(0) 编辑
REHL8 oracle 19C RAC安装一(环境准备)
摘要:1.三台虚拟机 虚拟机的配置如下 2./etc/hosts 设定,一般情况下用Vmware 两张网卡就可以了,不过可以用三张网卡 [root@nymtx asm]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4
阅读全文
posted @
2020-11-11 00:01
InnoLeo
阅读(1230)
推荐(0) 编辑
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.
摘要:问题描述 $ mysql -uroot -p </data/alldb.sql Enter password: ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTE
阅读全文
posted @
2020-11-04 01:02
InnoLeo
阅读(715)
推荐(0) 编辑
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
摘要:mysql 导入出错 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 查看参数 root@mysqldb 15
阅读全文
posted @
2020-11-02 15:12
InnoLeo
阅读(253)
推荐(0) 编辑