Modify parameter settings and view modification history for RDS for MySQL instances through the console or API. View instance parameters.
Usage notes
-
To ensure instance stability, only parameters available in the console can be modified. The
set globalcommand is not supported. -
When modifying parameters, check the Value Range column on the Editable Parameters page. You can also use expressions to automatically adapt parameters to instance configuration changes.
-
Some parameters modified on the primary instance are automatically synchronized to read-only instances. Appendix: Synchronized parameters.
-
Notes on the
lower_case_table_namesparameter:-
MySQL 5.7, 8.0, and 8.4: Table name case sensitivity must be specified when you create the instance (default value: 1, case-insensitive). This parameter cannot be modified after the instance is created, and its value remains unchanged after an upgrade.
-
MySQL 5.6:
-
This parameter can be modified after the instance is created, but the instance will be restarted. We recommend that you modify the parameter during off-peak hours.
-
If you want to change the value from
0to1, you must convert uppercase table names in the instance to lowercase beforehand. Otherwise, existing uppercase tables will become inaccessible. -
Read-only instances do not support modifying this parameter. You must modify it on the primary instance, and the modification will be synchronized to read-only instances.
-
-
Parameter modifications may require an instance restart or reconnection. Perform these operations during off-peak hours and ensure your application has an automatic reconnection mechanism:
-
Some parameters require an instance restart to take effect. Check the Force Restart column on the Editable Parameters page. A restart causes a connection interruption of about 15 seconds. Ensure your application has an automatic reconnection mechanism.
-
Parameters that do not require a restart take effect on new connections only. Existing connections must be reconnected.
Modify instance parameters
Modifiable parameters vary by MySQL engine version. List of modifiable parameters for RDS for MySQL.
Modify the parameters of a single instance
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left navigation bar, click Parameters.
-
You can perform the following operations:
Modify single parameter
-
On the Editable Parameters tab, find the parameter that you want to modify and change its value based on the scenario:
-
Click
in the Running Parameter Value column, and enter a parameter value based on the suggested value range. -
In the Running Parameter Value column, select a parameter value from the drop-down list.
-
-
Click OK.
-
Click Apply Changes. In the dialog box that appears, select an effective time period. You can select Take Effect Immediately, Take Effect Within the Maintenance Window, or Take Effect at Specified Time.
NoteOn the Scheduled Tasks for Parameter Modification tab, you can view parameter modification tasks for which you selected Take Effect Within the Maintenance Window or Take Effect at Specified Time.
-
(Optional) To cancel the parameter modifications before they are submitted, click Cancel Changes.
Apply and export templates
Apply a parameter template
RDS provides system parameter templates for scenarios such as high performance. You can also create custom templates to apply settings in batches. Use a parameter template.
-
Click Apply Template.
-
Select the parameter template to apply, and click OK.
Note-
The dialog shows parameter count and whether a restart is required. To view detailed changes, click View Parameter Change.
-
If the parameter template is not listed, it may be in a different region. Copy the template to the instance's region. Use a parameter template.
-
Export a parameter template
-
Click Export as Template.
-
Configure the following parameters.
Parameter
Description
Template Name
Template name. 8 to 64 characters; allows letters, digits, periods (.), and underscores (_). Must start with a letter. Cannot contain Chinese characters.
Description
Description for the template. Up to 200 characters.
-
Click OK to create a new parameter template in the region.
Import and export parameters
To modify many parameters at once or save current settings, export a TXT file of all parameter values, edit it locally, and import it to apply changes.
-
Click Export Parameters to export the parameter file in TXT format.
-
After modifying the file, click Import Parameters and paste the file contents into the dialog box.
-
Click OK.
-
Click Apply Changes. In the dialog box that appears, select when the changes take effect. You can select Take Effect Immediately, Take Effect Within the Maintenance Window, or Take Effect at Specified Time.
NoteOn the Scheduled Tasks for Parameter Modification tab, you can view parameter modification tasks where you selected Take Effect Within the Maintenance Window or Take Effect at Specified Time.
-
(Optional) To cancel parameter modifications before they are submitted, click Cancel Changes.
ImportantIf the
Operation failed. The specified parameter format is invalid.error message appears, check whether the parameter value you entered is within the Valid Values.
-
Modify parameters for multiple instances
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
-
Select the checkboxes to the left of multiple target instances and click Apply Changes at the bottom of the page.
NoteInstances in a batch parameter change must have the same version and series. Otherwise, the Modify Parameters button is grayed out and you cannot click it.
-
On the Parameters page that appears, click the
icon to the far right of the name of the parameter to modify. -
In the value box, select or enter a new value and click OK.
-
In the Parameters window that appears, verify that the changes are correct, and click OK.
View modification history
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left navigation bar, click Parameters.
-
Click the Edit History tab.
-
Select the time range and click OK.
FAQ
Appendix: Synchronized parameters
The following parameters are automatically synchronized from the primary instance to all read-only instances when modified.
-
lower_case_table_names
NoteFor RDS for MySQL 5.7, 8.0, and 8.4, table name case sensitivity can only be specified when you create the instance, and the
lower_case_table_namesparameter cannot be modified afterward. Only MySQL 5.6 supports modifying this parameter on the primary instance, with the change synchronized to read-only instances.
-
innodb_large_prefix
-
loose_validate_password_length
-
default_time_zone
-
rpl_semi_sync_slave_enabled
-
character_set_server
-
collation_server
API reference
|
API |
Description |
|
Modifies the parameters of an RDS instance. |
|
|
Queries database parameter templates. |
|
|
Queries the parameter configuration of an instance. |