Home  >  Article  >  Backend Development  >  10 recommended content for separation configuration

10 recommended content for separation configuration

黄舟
黄舟Original
2017-06-13 09:15:011384browse

MySql is used as the database in the recently developed system. Since the data involves Money, we have to be cautious. At the same time, users also put forward requirements for the maximum number of visits. In order to prevent MySQL from becoming a performance bottleneck and to have good fault tolerance, master-slave hot backup and read-write separation are implemented. I’ll keep a brief note here for future reference! 1. Configure master-slave conditions: two PCs, IPs are 192.168.168.253, 192.168.168.251 respectively. The Mysql version on both PCs is 5.0. Mysql on 253 is Master, and Mysql on 251 is Slave. 1. Main database server configuration. Enter the main database server installation directory, open my.ini, and add the following configuration at the end of the file: #Database ID number. When it is 1, it means Master, where master_id must be between 1 and 232–1. Positive integer value; server-id = 1 #Enable binary logging; log-bin=mysql-bin #The name of the binary database that needs to be synchronized;

1. Mysql-Master multi-slave and read-write separation configuration code example introduction

10 recommended content for separation configuration

Introduction: MySql is used as the database in the recently developed system. Since the data involves Money, we have to be cautious. At the same time, users also put forward requirements for the maximum number of visits. In order to prevent MySQL from becoming a performance bottleneck and to have good fault tolerance, master-slave hot backup and read-write separation are implemented. I’ll keep a brief note here for future reference! 1. Configure master-slave conditions: two PCs, IPs are 192.168.168.253, 192.168.168.251 respectively. The Mysql version on the two PCs is 5.0. The Mysql on the 253 is Ma

2. MySQL-One master and multiple slaves read-write separation configuration method based on amoeba

10 recommended content for separation configuration

Introduction: MySql is used as the database in the recently developed system. Since the data involves Money, we have to be cautious. . At the same time, users also put forward requirements for the maximum number of visits. In order to prevent MySQL from becoming a performance bottleneck and to have good fault tolerance, master-slave hot backup and read-write separation are implemented. I’ll keep a brief note here for future reference! 1. Configure master-slave conditions: two PCs, IPs are 192.168.168.253, 192.168.168.251 respectively. The Mysql version on the two PCs is 5.0. The Mysql version on the 253 is Ma

##3. yii2 Database read-write separation configuration example

10 recommended content for separation configuration

Introduction: This article mainly introduces the configuration example of yii2 database read and write separation. Database read and write separation is the most effective when the website encounters performance bottlenecks. Let’s consider the optimization steps first, and those who are interested can learn about them.

4. mysql Proxy read-write separation configuration and php mysql read-write separation class

Introduction: mysql Proxy read Write separation configuration and php mysql read and write separation class

5. yii2 database read and write separation configuration, yii2 database read and write_PHP tutorial

Introduction: yii2 database reading and writing separation configuration, yii2 database reading and writing. yii2 database read and write separation configuration, yii2 database read and write original text link: Yii Chinese website (yii-china.com) - yii2 database read and write separation configuration Introduction Database read and write separation is encountered on the website

6. yii2 database reading and writing separation configuration, yii2 database reading and writing

Introduction: yii2 database reading and writing separation configuration, yii2 database reading and writing. yii2 database read and write separation configuration, yii2 database read and write original text link: Yii Chinese website (yii-china.com) - yii2 database read and write separation configuration Introduction Database read and write separation is encountered on the website

7. MySQL master-slave synchronization and read-write separation configuration steps

#Introduction: Configure MySQL master-slave backup and read-write separation according to the requirements, combined with the Internet Documents, the following notes were made on the steps of setting up, problems that occurred, and the solution process

8. Implementation of Mysql master-slave replication and read-write separation

Introduction: Mysql5.6 GTID-based master-slave replication and use of Amoeba to configure read-write separation 1. Introduction 2. Mysql master-slave configuration 3. Read-write separation configuration 1. Introduction to Amoeba Amoeba (Amoeba) project, This open source framework was released in 2008

9. CentOS system Amoeba+MySL master-slave read-write separation configuration tutorial

10 recommended content for separation configuration

Introduction: CentOS system Amoeba+MySQL master-slave read-write separation configuration is a fool-proof tutorial for novices! -----for reference only!

10. thinksns reports an error after reading and writing separation configuration

Introduction: We are secondary development on thinksns , because thinkphp can configure read-write separation, so I found a lot of related articles on the Internet, and they all said the following configuration, for example: My configuration (below) {code...} Why, an error is reported: php_network_getaddresses: getaddrinfo failed...

[Related Q&A recommendations]:

php - thinksns reports an error after reading and writing separation configuration

The above is the detailed content of 10 recommended content for separation configuration. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn