Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ TaurusDB/ User Guide/ Parameter Management/ Modifying Parameters of a DB Instance

Modifying Parameters of a DB Instance

Updated on 2025-02-12 GMT+08:00

You can modify parameters of a DB instance to optimize performance if needed.

Precautions

  • To ensure DB instance stability, you can only modify the parameters that are available on the console.
  • To apply certain parameter modifications, you need to reboot the DB instance. After you modify a parameter value, check the value in the Effective upon Reboot column. You are advised to perform the operation during peak-off hours.
    Figure 1 Parameter list
  • The value of validate_password.length cannot be smaller than that of validate_password.number_count+validate_password.special_char_count+(2 * validate_password.mixed_case_count). Otherwise, the allowed minimum value of validate_password.length is used when the parameter template is applied.
  • If you want to use a custom parameter template during instance creation, ensure that the value of validate_password.length in the template is at most 16. Otherwise, the DB instance fails to be created.
  • If you want to use a custom parameter template during instance creation, ensure that the values of validate_password.mixed_case_count, validate_password.number_count, and validate_password.special_char_count are at most 4. Otherwise, the DB instance may fail to be created. The default value 1 is recommended.
  • The value of rds_compatibility_mode depends on the TaurusDB kernel version.

Modifying Parameters of a DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > TaurusDB.
  4. On the Instances page, click the instance name.
  5. In the navigation pane, choose Parameters.

    Alternatively, click in the upper right corner of the Basic Information page and choose Modify Parameters.

    Figure 2 Choosing Modify Parameters

  6. On the Parameters tab, modify parameters.

    Figure 3 Modifying parameters of a DB instance

    • To save the modifications, click Save. In the displayed dialog box, click Yes.
    • To cancel the modifications, click Cancel.
    • To preview the modifications, click Preview.

  7. After the parameters are modified, click Change History to view the modification records.

    Figure 4 Viewing the modification records

Modifying Parameters in a Parameter Template

You can modify parameters in a custom parameter template and then apply the template to multiple DB instances.

  1. In the navigation pane, choose Parameter Templates. On the Custom Templates tab, click the parameter template name.
  2. On the displayed Parameters page, modify parameters as required.

    NOTICE:
    Figure 5 Modifying parameters in a parameter template
    • To save the modifications, click Save. In the displayed dialog box, click Yes.
    • To cancel the modifications, click Cancel.
    • To preview the modifications, click Preview.

  3. After the parameters are modified, click Change History to view the modification records.
  4. After a parameter template is modified, the modification will not take effect until the template is applied to DB instances. On the Parameter Templates page, locate the parameter template you want to apply and choose More > Apply in the Operation column.

    Figure 6 Applying a parameter template to a DB instance

  5. Select one or more DB instances and click OK.

    Figure 7 Selecting DB instances

  6. After the parameter template is applied, click the DB instance name and check whether the parameters have been modified on the Parameters page.

Common Parameters

Table 1 Common parameters

Parameter

Description

Reference

time_zone

Specifies the time zone of the server.

How Do I Change the Time Zone?

default_password_lifetime

Specifies the global automatic password expiration policy, in days.

How Do I Configure a Password Expiration Policy for TaurusDB Instances?

character_set_server

Specifies the server character set.

How Do I Use the utf8mb4 Character Set to Store Emojis in a TaurusDB Instance?

collation_server

Specifies the collation for the character set of the server. The collation must match the character set specified by character_set_server. Otherwise, the database cannot be started or restarted.

-

group_concat_max_len

Specifies the maximum permitted result length in bytes for the GROUP_CONCAT() function.

-

max_connections

Specifies the maximum number of concurrent client connections. If this parameter is set to default, the parameter value depends on how much memory there is.

What Is the Maximum Number of Connections to a TaurusDB Instance?

max_prepared_stmt_count

Limits the total number of prepared statements in the server. Too many statements may cause the server to run out of memory (OOM) and risk denial-of-service attacks. Configure this parameter as needed.

-

innodb_flush_log_at_trx_commit

Controls the balance between strict ACID compliance for commit operations, and higher performance that is possible when commit-related I/O operations are rearranged and done in batches. When this parameter is set to 0, the content of the InnoDB log buffer is written to the log file approximately once per second and the log file is flushed to disk. The default value of 1 is required for full ACID compliance. With this value, the contents of the InnoDB log buffer are written out to the log file at each transaction commit and the log file is flushed to disk. When this parameter is set to 2, the contents of the InnoDB log buffer are written to the log file after each transaction commit and the log file is flushed to disk approximately once per second.

Viewing Suggestions on TaurusDB Parameter Tuning

sql_mode

Specifies the SQL server mode.

-

binlog_expire_logs_seconds

Specifies the binary log expiration period in seconds. After their expiration period ends, binary log files can be automatically removed.

-

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback