[MySQL] record once to solve the GTID (1236) exception of MGR group replication
Phenomenon:
The application service sends a write request error to one of the MGR nodes
mysql> (3101, 'Plugin instructed the server to rollback the current transaction.')
Check the synchronization error of this node group
mysql> SELECT * FROM performance_schema.replication_group_members;
+---------------------------+- ...
Added by carlmty on Thu, 19 Dec 2019 00:03:47 +0200
Prometheus application monitoring
This paper describes how to realize the application monitoring of Prometheus
Monitoring Nginx
nginx: 1.16.1,nginx-vts-exporter: 0.10.3,nginx-module-vts: 1.6.3
Monitoring Nginx mainly uses the following three modules:
Nginx module VTS: monitoring module of nginx, which can provide data output in JSON format.
Nginx VTS exporter: it is mainly us ...
Added by TempleDMDKrazd on Wed, 18 Dec 2019 11:29:39 +0200
Basic Introduction and Quick Setup of DBLE Learning for Database Middleware
Introduction to the basic dble architecture
dble is a highly available and scalable distributed middleware based on mysql.The River Laker sent the nickname MyCat Plus. Open source address
Let's start with the architecture diagram, where external applications are connected via NIO/AIO.First, let's talk about what NIO/AIO is.
BIO, the traditiona ...
Added by MadDawgX on Wed, 18 Dec 2019 04:50:53 +0200
Introduction of Jython, a docking tool between python and java
quick get start
Next we use jython to call the classes in the custom jar package.
Edit java file: Beach.java
public class Beach {
private String name;
private String city;
public Beach(String name, String city){
this.name = name;
this.city = city;
}
public String getName() {
return nam ...
Added by stlewis on Tue, 17 Dec 2019 23:28:24 +0200
Display the system logs in the database through the log analyzer
catalog
Displaying logs in database through log analyzer
Environmental preparation
Prepare server:
Log server:
Database server:
Test whether the log server and database are connected:
websrv server:
Displaying logs in database through log analyzer
Environmental ...
Added by blkrt10 on Tue, 17 Dec 2019 15:43:39 +0200
Two ways to create a database connection pool
Understanding of using DBCP and CP30 to create database connection pool (for college students, please correct if there is something wrong)
DBCP creates database connection pool
CP30C create database connection pool
Why use this first? First of all, in the early stage, I believe that many small partners will connect to the ...
Added by frost110 on Mon, 16 Dec 2019 18:43:09 +0200
SQL updates from one table to another based on ID match
I have a database of account numbers and card numbers. I match these files with files to update all card numbers to this account, so I only use the account.
I created a view that links the table to the account / card database to return the Table ID and the associated account, and now I need to update those records whose ID matches the accou ...
Added by yacaph on Mon, 16 Dec 2019 16:28:39 +0200
innobackupex incremental backup and recovery
Download: Xtrabackup
https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.8/binary/redhat/7/x86_64/Percona-XtraBackup-2.4.8-r97330f7-el7-x86_64-bundle.tar
Unzip, install yum
tar -xvf Percona-XtraBackup-2.4.8-r97330f7-el7-x86_64-bundle.tar
yum install percona-xtrabackup-24-2.4.8-1.el7.x86_64.rpm
Full backup
innobackupex –user=r ...
Added by Hatdrawn on Sat, 14 Dec 2019 17:40:51 +0200
One-line command for mysql to go struct
Githubd address
Chinese Documents | DOCUMENT
okcli can generate the specified data table as a corresponding model file and currently supports bringing column names, data types, default values, comments into the specified model.Like the following files:
import "time"
type (
Student struct {
Id int32 `db:"id"`
N ...
Added by blacksmoke26 on Sat, 14 Dec 2019 03:10:29 +0200
Can't SpringBoot+Mysql save emoj expression?
Especially remember a long time ago, if you want to save emoj expressions in mysql, you need to transcode emoj expressions and save them. Every time you read them, you need to decode and restore them. Every time you do this sb operation, you really feel the heart jam. Is there any way to save them directly?
mysql itself can support emoj express ...
Added by dvd420 on Fri, 13 Dec 2019 06:49:31 +0200