mysql5.7 master slave replication setup

1: Check whether mysql has been installed locally rpm -qa | grep mysql 2: Uninstall previous mysql rpm -e Existing MySQL full name Step 2: unzip the file [root@MiWiFi-R3-srv ~]# tar -zxvf mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz -C /usr/local/ Change the file name to mysql: [root@MiWiFi-R3-srv local]# mv mysql-5.7.17-linux-glibc2.5-x86_ ...

Posted by otuatail on Tue, 22 Feb 2022 06:32:31 +0100

Second kill based on redis

For single process implementation @RequestMapping("/miaosha1") @ResponseBody public String miaosha1() { synchronized (this){ Map<String,Object> mapListmaps = new HashMap<>(); //Get inventory value in redis int kucun = Integer.valueOf(redisUtil.getStrKV("kucun").toString()) ...

Posted by smudge on Tue, 22 Feb 2022 04:28:30 +0100

Building mysql master-slave structure with docker-compose

Using docker-compose to build mysql master-slave structure A few days ago, I tried to learn the online tutorial. Using docker-compose, I set up a simple master-slave mysql for learning purposes. Next, I will show you the pure dry goods step by step in the following section. Roll up!!! First, the basic environment and software used by the auth ...

Posted by grantson on Mon, 21 Feb 2022 18:37:01 +0100

Basic operation of pymysql

Database Introduction concept A Database for storing data, which organizes, stores and manages data according to a certain data structure. classification Relational databases: mysql, sql server, oracle, DB2, etc. Non-relational databases: redis, etc. How python operates on databases pymysql: pure Python development, supporting python2 and ...

Posted by bam2550 on Mon, 21 Feb 2022 18:37:18 +0100

Manually deploy MySQL database on Linux system

Introduction: MySQL is a relational database management system, which is often used to build websites such as LAMP and LNMP. This book will introduce you how to install, configure and remotely access MySQL database on ECS instance of Linux system. For image download, domain name resolution and time synchronization, please click Alibaba open ...

Posted by anujgarg on Mon, 21 Feb 2022 15:18:56 +0100

MySQL MHA high availability cluster deployment and failover

MySQL MHA high availability cluster deployment and failover MySQL MHA 1, MHA concept MHA (MasterHigh Availability) is a set of excellent software for failover and master-slave replication in MySQL high availability environment. The emergence of MHA is to solve the problem of MySQL single point. During MySQL failover, MHA can automatically co ...

Posted by Coldman on Mon, 21 Feb 2022 12:40:22 +0100

[tool for quickly creating MySQL stand-alone and cluster test environment] dbdeployer

1. Background Do you have such trouble? When there is a problem in the online MySQL Cluster, you need to test some in the test environment However, when building a single machine cluster, especially a test cluster or MGR cluster, the environment needs to be built It takes a lot of time and then needs to be recycled. Moreover, the number of mac ...

Posted by siminder on Mon, 21 Feb 2022 09:22:51 +0100

[tcallusdb knowledge base] restfulapi2 0 for generic table - [Pb] Introduction to batchinsertrecords

brief introduction To add data in batch in PB table, you can specify the insertion method. Batch insertion interface is a non atomic interface, which allows partial success and partial failure. The user needs to judge the number of successful records or failed records according to the return value. POST http://{Tcaplus_REST_URL} Request syn ...

Posted by gnawz on Mon, 21 Feb 2022 03:49:17 +0100

Configure MySQL database for WSO2 ESB 5.0.0 cluster

For cluster configuration, see: WSO2 ESB 5.0.0 cluster configuration 1, Cluster database Each Carbon based product uses a database to store user management details and registry data. All nodes in the cluster must use a central database for configuration and governance registry mount. H2 is not recommended for production.It is not recomme ...

Posted by holstead on Mon, 21 Feb 2022 02:29:07 +0100

mysql uses binlog backup

1, Bin log backup function The operation log of mysql binary database is the safe log of transaction. 2, Open bin log Set the profile my inf Add the following content to the configuration file log-bin=/var/lib/mysql/mysql-bin //Open and set the backup file directory and backup naming format server-id=1 //The unique id of the database server ...

Posted by Deanznet on Mon, 21 Feb 2022 02:17:30 +0100