TLDR; This MySQL China tutorial provides you with a step-by-step solution to create and host a MySQL Database in China.
What is MySQL?
MySQL is a relational database management system developed by the Swedish company MySQL AB and is a product of Oracle.
MySQL is a relational database management system. Relational databases store data in different tables instead of putting all data in a large warehouse, which results in an increase of speed and flexibility.
The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software adopts a dual authorization policy, divided into community version and commercial version. Small and medium-sized website development choose MySQL as the website database of choice, due to its small size, high speed, low total cost of ownership, and characteristics of open source,
21YunBox provides one-click hosting and operation and maintenance free solutions for your MySQL database.
How to Create a MySQL Database in China?
- Signup on 21YunBox
- Select “Database” in the console
- Then click “Add Database”
- Use the following values during creation
|Database||Give the currently created database instance a name|
|Database name||The name of the database when connecting to the database. If not specified, the system will automatically generate it.|
|Database Username||The username of the database when connecting to the database. If not specified, the system will automatically generate it.|
Note: Database name and Database user name cannot be changed being created.
You will find that in the above configuration, the database password is not filled in. This is because the system will automatically generate it and no additional filling is required.
How to Connect to the Database Remotely?
In most cases, we connect to the database to add, delete, modify or search and other actions are connected by code. We have automatically spliced the URL connected to the database, you only need to paste it to complete the configuration and use.
How to Connect to the Database Under the Intranet?
Under the intranet of 21YunBox, you can directly use database URL to connect.
For details, please refer to the database connection section:
- For Python Flask or Django project, please refer to How to deploy Django project to server?
- PHP Laravel project, please refer to How to deploy Laravel project to server?
- Ruby on Rails project, please refer to How to deploy Rails project to server?
- Java Spring project, please refer to How to deploy Spring project to server?
How to Connect to the Database Under the External Network?
How to Backup the Database?
21YunBox provides a free 7-day cloud database backup, which is stored on a multi-backup cloud disk in
.sql.gz format on a daily basis.
the 50th Statistical Report on China's Internet Development
Aug 31, 2022
How To Get an ICP License In China?
Aug 29, 2022
21YunBox Build FAQ
Aug 21, 2022
How Much Does it Cost to Host a Website in China?
Jul 28, 2022
Didi fined $1.2 billion for breaking China Data Security Laws
Jul 21, 2022