RDS MySQL

The stable, reliable and elastic online MySQL database service can help you avoid the troubles of MySQL operation and maintenance.

Fast entry
04:31 RDS MySQL Serverless publishing
Product Introduction

RDS MySQL is based on Alibaba's MySQL source code branch, and has passed the test of high concurrency and large amount of data during the Double 11 Festival, with excellent performance. RDS MySQL supports basic functions such as instance management, account management, database management, backup recovery, white list, transparent data encryption, and data migration. It also supports advanced functions such as read-write separation, SQL audit, and multi zone cluster.

Product advantages
Product Functions
Product selection
Getting Started and Trying Out
Get started quickly
  • zero one Prepare environment and resources

    one

    Install MySQL Workbench locally.

    two

    One click application for RDS MySQL trial instance.

  • zero two Create an account, set a white list, and open the Internet

    one

    Create a database account.

    two

    Add white list and open internet address.

  • zero three Connect and use instances

    one

    Connect to the RDS MySQL instance.

    two

    Operate the database in MySQL Workbench.

Free trial
Quickly use RDS MySQL Serverless instance
The business may waste resources in the trough period, and may be short of resources and damaged in the peak period. RDS MySQL Serverless instance provides real-time flexibility of CPU and memory, and computing resources are billed on demand. It has the advantages of low resource consumption, simple use, flexibility and low price. In this tutorial, you will learn how to create an RDS MySQL Serverless instance and connect and query through the Internet.
18 minutes
Connect to RDS MySQL cluster and realize read/write separation
In the scenario of more reads and less writes, a large number of read requests may cause pressure on the instance, and then affect the business. RDS MySQL cluster instances support read/write separation, enabling write requests to be forwarded to the primary node and read requests to be forwarded to the standby node, thus reducing the pressure on the primary node of the instance. In this tutorial, you will learn how to create an RDS MySQL cluster instance, and use the local application (Java) to connect and configure read-write separation.
25 Minutes
Technical solutions
RDS+ClickHouse building one-stop HTAP

This solution uses the RDS MySQL console to visually add a ClickHouse analysis node, and visually and whitescreen configure the real-time synchronization of MySQL data tables and ClickHouse tables. It solves the complex data synchronization configuration operations, operation and maintenance processes, and realizes flexible and efficient one-stop HTAP. Utilize ClickHouse's online real-time analysis capability to solve online statistical analysis of large-scale business data, such as business report statistics, interactive operation analysis, reconciliation, real-time data warehouse and other business scenarios, and realize the integration of online transaction processing and online analysis.

 RDS+ClickHouse building one-stop HTAP
  • Problem solving: complex synchronization configuration

    By default, you need to configure the database engine type as MaterializeMySQL and configure a series of complex and tedious related parameters to achieve data synchronization when creating a database in SQL in ClickHouse.

  • Solution: Complex link maintenance

    By default, it is difficult to support maintenance operations such as synchronizing object objects, skipping synchronization errors, and restarting synchronization links. At the same time, it is impossible to control the flow of synchronization links, such as controlling the maximum number of rows pulled per second during full synchronization.

  • Problem solving: relying on third-party synchronization tools

    In order to solve the problem of complex configuration and maintenance of MySQL to ClickHouse data synchronization, third-party synchronization tools are often introduced, but also bring high synchronization costs and tool maintenance costs.

Real time synchronization of cache consistency between RDS and Redis

Data synchronization and consistency between RDS MySQL and Redis cache are realized through the architecture of RDS MySQL+DTS+Redis. Through real-time synchronization of MySQL database data to the Redis cache, the data query speed is improved, the database pressure is reduced, and the real-time and accuracy of business data are ensured.

 Real time synchronization of cache consistency between RDS and Redis
  • Solution: It is difficult to select and develop cache schemes

    MySQL and Redis cache consistency is a key challenge. There are usually the following cache modes: Cache Side, Read/Write Through, Write Behind Caching, etc. Each implementation mode has different advantages and disadvantages, and the cost of development, operation and maintenance is high.

  • Solution: The data synchronization service is unstable

    Data synchronization between MySQL and Redis depends on third-party tools to subscribe to BINLOG. There are service performance, service stability and other problems, which easily lead to high synchronization delay and data consistency problems, which ultimately affect the business.

  • Problem solving: complex data synchronization

    Maintaining data consistency between MySQL and Redis is just a business need, but they are heterogeneous data synchronization. The implementation of business logic is complex and difficult to develop. There is no log data subscription, business logic writing, and end-to-end code examples of target data writing.

Cloud based stand-alone website architecture based on RDS MySQL

This best practice describes how to preliminarily cloud a stand-alone system based on RDS MySQL. When many users start to use the cloud, they will simply use the cloud (server) as a common physical server, such as storing application systems, databases, and files on the same cloud server. This deployment of applications after business growth is not convenient for expansion, and it is also difficult to handle highly concurrent requests simply by upgrading the specification. It is recommended to separate computing and storage. The cloud provides far more than servers, but also cloud databases such as RDS MySQL, so that users can cloud their architecture on the cloud, and ultimately bring high availability, flexibility, stability and other advantages.

 Cloud based stand-alone website architecture based on RDS MySQL
  • Elastic extension of architecture

    Use RDS MySQL and Redis to upgrade from a stand-alone manual deployment architecture to a cloud based fully hosted deployment architecture, so that the overall architecture has automatic elastic scalability, and can more flexibly respond to business access loads and high concurrency requests.

  • High availability of business

    The active/standby architecture provided by the highly available form of RDS MySQL can support automatic database failover, with an SLA commitment of up to 99.99%, greatly improving the availability of the overall business and ensuring the continuous availability of the business.

  • Convenient operation and maintenance management

    A series of database management functions and APIs of RDS MySQL, including failover, backup recovery, monitoring alarm, automatic elasticity, etc., can be used to more conveniently operate and optimize the business architecture.

Deploy the classic architecture of cloud websites based on RDS MySQL

Build a classic cloud architecture based on RDS MySQL. In entrepreneurial companies or companies operating in the amoeba model, there is greater uncertainty at the initial stage of new project release. Both the future expansion of the project and the operating cost of the project should be considered. The RDS MySQL solution provides customers with low-cost, agile and fast best practices. Typical industries: traditional enterprises, games, retail and other industries.

 Deploy the classic architecture of cloud websites based on RDS MySQL
  • Cellular deployment

    The system can be disassembled into multiple independent small systems for unit deployment according to regional rules. With the highly available or clustered version of RDS MySQL, distributed business nodes can achieve disaster recovery across different availability zones to ensure the stability and reliability of the core system.

  • Cost reduction and efficiency increase

    The highly available ARM architecture of RDS MySQL can significantly reduce the cost of going to the cloud. At the same time, it can also increase the read-only instances of the ARM architecture to achieve read-write separation. It can also flexibly increase or decrease the number of read-only nodes.

  • Efficient data synchronization

    The data synchronization and data subscription functions of DTS, combined with RDS MySQL, can ensure the full synchronization of data links, while taking into account the advanced requirements of data security, remote disaster recovery and so on.

Product pricing

Alibaba Cloud provides a 0.5-2 RCU with 50 GB RDS MySQL database for new authenticated users. You can use it together with ECS for low frequency database usage scenarios such as development and test environments, SaaS application scenarios such as SME website building services, educational scenarios such as individual developer users, school teaching, student experiments, and uncertain load scenarios such as the Internet of Things (IoT) and edge computing.

Billing method

RDS provides flexible billing methods to help you save costs.

  • Monthly package (prepayment)

    definition Monthly subscription is also called prepayment, that is, it pays when creating a new database instance.

    Applicable scenarios It is suitable for long-term demand. The longer the purchase time, the more discounts.

    Billing mode conversion Monthly subscription can be changed to pay as you go.

  • Pay as you go (pay as you go)

    definition Pay as you go billing is a method of paying after using. Alibaba Cloud automatically deducts the cost of using resources from the account by the hour.

    Applicable scenarios It is suitable for short-term needs. When used up, instances can be released immediately to save costs.

    Billing mode conversion Pay as you go can be changed to monthly package.

  • Serverless

    definition Serverless is a dynamic billing method, which can dynamically match resources according to the instance load and charge in real time. You only need to pay for the actual usage, which saves a lot of costs.

    Applicable scenarios The service has intermittent timing tasks, and the load fluctuates or is unpredictable.

    Billing mode conversion Conversion to other billing methods is not supported.

Security Compliance

RDS MySQL, based on Apsara distributed system and full SSD disk high-performance storage, provides comprehensive and diversified security reinforcement functions in multiple dimensions, such as network communication, data storage, access control, security audit, and instance disaster recovery, to ensure the reliability and security of user data in a one-stop manner.

  •  network security

    network security

    • Attack protection RDS provides multiple attack protection means, including DDoS attack prevention, traffic cleaning, SQL injection detection, and multiple attack protection means.

    • SSL encryption Encrypting the network connection at the transport layer can improve the security and integrity of communication data and increase the response time of network connection.

  •  data security

    data security

    • TDE encryption Implement real-time I/O encryption and decryption on data files to ensure the confidentiality of disk files and keep away from attackers who directly access data from files.

    • Backup and file return RDS provides two functions: data backup and log backup, restore by backup set and restore by point in time, and restore by backup set and restore by point in time.

  •  Disaster tolerance safety

    Disaster tolerance safety

    • Multi zone instance disaster recovery Provide database availability higher than the physical server limit through asynchronous or semi synchronous data replication and efficient active/standby switching mechanism

    • Disaster recovery instance Real time synchronization between the primary instance and the remote disaster recovery instance is realized through DTS, which is suitable for business scenarios with strong demand for data reliability.

Customer Stories
common problem
Q: RDS MySQL vs. self built MySQL database
A: RDS MySQL provides highly available, reliable, secure, and scalable managed database services. The price of the same RDS MySQL database is lower than that of the ECS self built MySQL database and self purchased servers to build a MySQL database, which can save a lot View details
Q: How to choose the basic version, high availability version and cluster version?
A: The basic version is a single node architecture, which is used for the development and testing environment of micro websites or SMEs. The high availability version is a high availability architecture of one active and one standby, which is used for production databases of large and medium-sized enterprises. The cluster version is an active multi standby architecture, which is used for a large number of peak traffic read requests and data intelligent analysis needs View details
Q: Are there any restrictions and precautions for RDS?
A: When changing configuration, version upgrading, and failover, there is a flash break. When switching internal and external networks, the connection will be disconnected, and the instance with full storage space will be locked. View details
Q: Why does the subscription instance still generate a postpaid bill?
A: The prepaid fees for monthly subscription instances do not include the following value-added capabilities: read-only instances (optional), cloned instances (optional), backup space (free quota), performance monitoring (optional), SQL insight and audit (optional), database agents (optional), internet traffic (optional), backup View details
Q: How to charge for RDS change (upgrade) configuration?
A: Pay as you go instances are charged hourly, and the new price is charged hourly after configuration changes. When the yearly/monthly subscription instance is changed, the price difference or refund will be made according to the selected specification. View details
Q: How to reduce or control backup costs?
A: The automatic backup of RDS instances does not support cancellation. If you do not have strong backup requirements, you can reduce the backup frequency and the backup space occupation through backup settings. View details
Q: How to optimize RDS MySQL instances with high load?
A: RDS products have high CPU, memory, space, and IOPS utilization during daily use, which can be solved according to the specific causes of the problem. For details, see the official website documentation. View details
Q: RDS MySQL disk space is insufficient, can it be expanded?
A: You can increase the available storage space by expanding the disk or clearing invalid data. If the current storage space capacity has reached the upper limit supported by the instance type, you need to change the instance storage space while upgrading the instance type. View details
Q: How does RDS MySQL achieve read-write separation?
A: You can open an exclusive proxy service and add a read-only node to the primary instance. Without modifying the application code, the read-only request is automatically forwarded to the read-only instance node associated with the primary instance through the exclusive proxy to achieve read performance expansion. View details
Q: Does RDS MySQL support SQL log or operation log auditing?
A: The highly available or clustered version of RDS MySQL supports SQL insight and audit functions. On the basis of full request and security audit, it integrates search, SQL insight, security audit, traffic playback and pressure testing, and other functions to help you better obtain specific information, ranking, and other SQL statements View details
Q: How does RDS MySQL manage database accounts and permissions?
A: RDS MySQL supports the creation of database accounts and authorization management through the console, SQL statements, APIs, etc. It does not support system level root permissions or accounts with super permissions. View details
Q: What qualifications does RDS have?
A: Alibaba Cloud cloud computing services (including database services) have passed ten security compliance certifications, including ISO 20000, SOC, PCI-DSS, and the third level of equal protection. Comply with the international standard ISO/IEC 27001. View details
community
Experiments and courses
Technical exchange
Content classification: