- Documentation
RDS for MySQL
User guide
Managing parameters
Applying a parameter template
Managing parameters
Applying a parameter template
Applying a parameter template
This topic describes the procedure for applying parameter templates.
Background
Use the parameter template feature when you need to manage instance parameters in batches or apply batch parameter modifications to multiple instances.
RDS for MySQL provides two types of templates: system templates and customized templates.
- System templates are targeted parameter settings provided by RDS for MySQL for different business scenarios to ensure reliability, such as high-performance parameter templates for superior performance. The following system templates are provided by RDS for MySQL:
tip
- When you create an instance, the system automatically selects the default parameter template that matches the instance version you chose.
- When you apply a system parameter template to an instance and select the scope of modification as All nodes, if the data synchronization method of the instance is different from the preset method of the system template, the data synchronization method will be adjusted automatically after applying the parameter template.
- You can create your own custom templates and fully customize the parameters according to your own business needs provided the values comply with parameter setting requirements. For more information about creating a custom parameter template, refer to Creating a parameter template.
Precautions
- If the parameter template you choose contains parameters need to restart the instance to take affect, the instance will restart after applying the parameter template. If the parameter template that needs to be applied contains parameters that need to be restarted, the instance will be restarted after applying the parameter template. It is recommended that you add a reconnection mechanism to the application, which can greatly reduce the impact of database disconnection on the business. During the restart process of a read-only node, the corresponding nodes will be unavailable, and the load of the current read-only node will be transferred to other nodes that meet the conditions. Proceed after accurately evaluating the impact of the restart.
- If the value of a parameter in the template is a formula, it will be calculated separately according to the specifications of each node.
- When you apply a system parameter template to an instance and select the scope of modification as All nodes, if the data synchronization method of the instance is different from the preset method of the system template, the data synchronization method will be adjusted automatically after applying the parameter template.
- The underlying logic of MySQL will automatically adjust some parameters to preset limit values or integer multiples of preset values, so the final effective value may differ from the value assigned by the user. For details about the automatic parameter adjustment logic, refer to Parameter modification rules.
- Database instances of different kernel versions support different parameters. When modifying parameters of batch instances, the system will automatically ignore parameters that are not supported by the current kernel version of the instance. For detailed information on the modifiable parameters supported by different kernel versions, refer to the following documents:
- To enhance the security of RDS for MySQL, optimize privilege management, and provide more granular and secure resource management services, RDS for MySQL has upgraded its parameter template feature to support project authentication. After the project-based authentication capability is launched, historical customized parameter templates are automatically assigned to the "Global resources" project. For customized parameter templates under the "Global resources" project, you need to select the "All resources" project in the top navigation bar to view them.
Procedure
- In the upper-left corner of the top menu bar, select the project and region for the instance.
tip
If the project of the instance has not been set, the project should be selected as All resources.
- Click on Instances in the left navigation bar.
- On the Instances page, click on the target instance name.
- At the top of the page, click Parametes.
- On the MySQL parameter tab, click Apply parameter template.
- In the popped-up dialog box, after completing the following settings, click OK.
tip
You can view the parameter templates recently used by the instance on the MySQL parameter tab. Click the template name to go to the parameter template page to view the detailed information of each parameter.
Last updated: 2026.05.28 15:17:50