A database (DB) is a collection of shared data that is stored with minimal redundancy and is independent of applications. Alibaba Cloud pre-installs a database on your Cloud Web Hosting instance based on your website's runtime environment. You can manage and maintain your database data from the host management console.
Supported database versions
The supported database versions vary based on the operating system and product type of your Cloud Web Hosting instance. Select a database version that is suitable for your website's development language and expected traffic. For more information, see Supported database versions for Cloud Web Hosting.
Get and configure database information
When you install a website program on a Cloud Web Hosting instance, you must first retrieve the database information for the instance. This information includes the database name, username, address, and password. Then, you can enter the database connection information on your website's database configuration page. For more information, see Retrieve and configure database information.
Reset the database password
After you install your website, you should regularly reset the database password in the host management console to improve security. You can also reset the password if you forget it. For more information, see Reset the database password for a Cloud Web Hosting instance.
Log on to the database
You can log on to the database using Data Management (DMS) or other methods, such as phpMyAdmin or PDO. We recommend using DMS for convenient and fast database logon and management. DMS helps secure your data, streamline management, and provide insights into your data.
DMS provides a web version and a client. The following list provides more information:
Web version: No client installation is required. You can go directly from the Cloud Web Hosting console to the DMS operations portal for your database. We recommend using the DMS web version. For more information, see Log on to a database using the DMS web version.
Client: Download and install the DMS client, such as the Windows client, based on your operating system. Then, import and log on to the database. For more information, see Log on to a database using the DMS client.
Reset the database
Cloud Web Hosting provides a feature to reset or clear a database. This feature restores all settings of the current database to their initial state. If the current database configuration does not meet your needs, you can reset the database before you reconfigure it. For more information, see Reset or clear a database.
Change the database
Cloud Web Hosting provides a feature to change the database. If the number of users and the volume of data for your website grow rapidly, the current database may not meet your requirements for Transactions Per Second (TPS) and storage. In this case, you can change the database to ensure that your website remains accessible. For more information, see Change a database.
Increase database space
If the pre-installed database space on your Cloud Web Hosting instance does not meet your needs, you can purchase additional space. This ensures that your website access is not affected. For more information, see Increase the database space of a host.
Back up database data
Cloud Web Hosting supports automatic and manual backups of database data. If your database data becomes abnormal or you need to change the database type, you can use the backup feature of Cloud Web Hosting to restore the data. For more information, see Back up and restore data.
Import database files
The import method you choose depends on the database type your website uses. Examples include using DMS, Navicat for MySQL, or the MySQL Command Line Client. For more information, see Import database files.
We recommend using DMS to import local database files. This method is more convenient than others because it does not require you to install a database or third-party client tools locally. For more information, see Import a database file using DMS.
Export database files
You can use an exported file from your Cloud Web Hosting database as a backup. You can use the backup to restore the Cloud Web Hosting database or to create a table schema with the same format in a new database. We recommend using DMS to export data from your host's database. This method is more convenient than other methods, such as using Navicat for MySQL or SQLyog. For more information, see Export a database file using DMS.