Initializing the Database

Use SQL to create a database.

When using an SQL statement to create a database, set the character set to GBK.

gsql -d postgres -p 26000
postgres=# CREATE DATABASE mydb WITH ENCODING 'GBK' template = template0;

Information similar to the following is displayed:

CREATE DATABASE
Feedback
编组 3备份
    openGauss 2024-07-27 00:56:07
    cancel