PostgreSQL is older but very powerful open source relational database. PostgreSQL supports most of the SQL standards and provides many other modern features such as complex queries, foreign keys, triggers, views, transaction integrity, and so on. Generally it is loved by developers of startups around the world.
21YunBox provides a fully managed (free of operations and maintenance) PostgreSQL database.
- Register as 21YunBox member
- Select "Database" in the console
- Then click "Add Database"
- Create with the following configuration
|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 once 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.
If you are not sure how to do it, you can see an example in this video: How to create a PostgreSQL database operation example
In most cases, we connect to the database to: add, delete, modify or search and other actions that are connected by code.
We have automatically spliced the URL connected to the database, to complete the configuration, you only need to paste it .
Under the intranet of 21YunBox, you can directly use database URL to connect.
For details, please refer to the database connection section:
- Python Flask or Django project, please refer to How to deploy Django project to the server?
- PHP Laravel project, please refer to How to deploy Laravel project to server?
If you are not sure what to do or would like to see a step by step example, please watch the following videos:
Use DBeaver to connect to the database video:
Use DBeaver to connect to the database
Use the command line to connect to the database video:
Use the command line to connect to the database
21YunBox is a Cloud Service platform based out of Beijing. Our services enable your team to be more effective in leveraging the growing opportunity within China by hosting your sites at blazing speeds with an operational and maintenance free, and low code solution.
21YunBox provides an easy and budget friendly, end-to-end web platform deployment service for all applications from small teams to large enterprises.
We also offer full support in obtaining your ICP license allowing you to legally host online content inside of Mainland China.
To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms, please refer to:
- 21YunBox vs Heroku
- 21YunBox vs Netlify
- 21YunBox vs Vercel
- 21YunBox vs Gatsby Cloud
- 21YunBox vs Github Pages
- 21YunBox vs Surge.sh
- Compare in terms of function and price: 21YunBox vs Heroku, Netlify, Vercel
This article's content originated here
For additional detail and future modifications, refer the original post.