1
0
forked from docs/doc-exports
doc-exports/docs/dws/dev/dws_04_0055.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

2.9 KiB

System Administrator

A system administrator is an account with the SYSADMIN permission. After a cluster is installed, a system administrator has the permissions of all object owners by default.

The user dbadmin created upon GaussDB(DWS) startup is a system administrator.

To create a database administrator, connect to the database as an administrator and run the CREATE USER or ALTER statement with SYSADMIN specified.

1
CREATE USER sysadmin WITH SYSADMIN password 'password';

Alternatively, you can run the following statement:

1
ALTER USER joe SYSADMIN;

To run the ALTER USER statement, the user must exist.