# Using LVM Snapshot to Backup MySQL 数据库全局读锁 flush tables with read lock; LVM 快照 lvcreate -L 500M -s -n mysql-snap /dev/datavg/mysql-snap mysql -uroot -p'Jove@123' -e 'show master status' > /backup/ date +%F _position.log 释放全局读锁(关闭全局锁会话时,锁将自动失效) unlock...

# Master-Slave Replication on MySQL 5.7.13 # Architecture All database operations are copied to the master’s binary log. Salves connect to the master and asks for the data. The slave servers get the masters binary log. Slaves then apply the binary log to its realy log. The relay log is read by the...

# Percona XtraDB Cluster # Examples: Node Host IP Node 1 node1.localhost 192.168.184.161 Node 2 node2.localhost 192.168.184.162 Node 3 node3.localhost 192.168.184.163 # Prerequisites Make sure that the following ports are not blocked by firewall or used by other software. Percona XtraDB Cluster...

# MY-011906 # SYMTOMS MySQL8 服务器意外掉电,启动时报错: InnoDB: End of page dump InnoDB: Page may be an update undo log page 2021-02-10T14:22:14.800611Z 0 [ERROR] [MY-011906] [InnoDB] Database page corruption on disk or a failed file read of page [page id: space=4294967279, page number=611]. You may have to...

# ERROR 2059 (HY000) # SYMPTOMS 客户端远程连接数据库时出现验证错误 ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: No such file or directory # CASE 该原因是 MySQL8 以后,加密规则是 caching_sha2_password,MySQL8 以前加密规则是 mysql_native_password # SOLUTION 修改 my.cnf 文件,将加密规则改为...

# ORA-15274 Not enough failgroups (3) to create voting files # APPLIES TO Operating System - Oracle Linux Server 7.9 Oracle Database - Enterprise Edition - version 11.2.0.3.0 Oracle Grid Infrastructure - version 11.2.0.3.0 # SYMPTOMS 安装 GI 软件,节点 1 执行 root.sh 时,出现如下错误: clscfg: -install mode...

# Execution rootcrs.pl fails # APPLIES TO Operating System - Oracle Linux Server 7.9 Oracle Database - Enterprise Edition - Version 11.2.0.4.0 Oracle Grid Infrastructure - Version 11.2.0.4.0 # SYMPTOMS 执行 $<GRID_HOME>/crs/install/rootcrs.pl 命令回滚 crs 配置,出现如下报错: [root@exadb01 ~]#...

# Deleting Oracle Database 19c RAC from Nodes on Linux # Deleting Instances from Oracle RAC Databases Use DBCA in silent mode to delete a database instance from a node, execute on the remaining nodes. ~]$ dbca -silent -deleteInstance -nodeList oracle19crac03 -gdbName coco -instanceName coco3...

# Creating a Physical Standby Database Oracle Database - Enterprise Edition - Version 11.2.0.4.0 # Preparing the Primary Database for Standby Database Creation # Enable an Appropriate Logging Mode FORCE LOGGING mode prevents any load operation from being performed in a nonlogged manner. This can...