Get the App
SLTechnology News&Howtos  ›  Database  › 

Example Analysis of auto_increment_offset and auto_increment_increment parameters of MySQL Master configuration

Shulou Source: shulou.com Published: 2022-05-31 15:29:46 10月05日 Update

This article mainly shows you "MySQL main configuration auto_increase_offset and auto_increase_increase parameter example analysis", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "MySQL main configuration auto_increase_offset and auto_increase_increase parameter example analysis" this article bar.

The parameters are explained as follows:

auto_increment_offset indicates the number from which the self-increment field starts, and refers to how much the field increments at a time. Its value range is 1.. 65535

auto_increment_increment indicates the increment amount of the self-increment field each time, and refers to the starting value of the self-increment field. Its default value is 1, and the value range is 1.. 65535

In order to avoid conflicts between the values of the self-growth field when two servers update at the same time. Generally, when configuring the master synchronization, you need to configure the auto_increase_increase of both servers to 2,

Auto_increment_offset is configured to 1 and 2 respectively.

The above is "MySQL master configuration auto_increase_offset and auto_increase_increase parameter sample analysis" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Configuration fields parameters growth examples analysis content articles servers scope learning help services between at the same time growth easy to understand more organization knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi Shulou Information OPPO Reno Linux