We recommend that you specify the Postgres role created at step 3 of this instruction as the database owner (in this example, the role is kscadmin). If you need to specify another Postgres role, connect to the database under this owner (or superuser) role and run the following commands:
GRANT ALL PRIVILEGES ON DATABASE "kav" TO "kscadmin";
GRANT USAGE ON SCHEMA public TO "kscadmin";
GRANT CREATE ON SCHEMA public TO "kscadmin";
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "public" TO "kscadmin";
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "public" TO "kscadmin";
Ensure that the database owner role has the CONNECT and TEMPORARY privileges.
If the error "New encoding (UTF8) is incompatible with the encoding of the template database" occurs, create a database by using the command: CREATE DATABASE "kav" ENCODING 'UTF8' OWNER "kscadmin" TEMPLATE template0; instead of: CREATE DATABASE "kav" ENCODING 'UTF8' OWNER "kscadmin";
Create a new Postgres role for IAM (in this example, the Postgres role is iamadmin):
CREATE USER "iamadmin" WITH PASSWORD '<password>';
Create an IAM database (in this example, the IAM database name is iam):
We recommend that you specify the Postgres role created at step 5 of this instruction as the database owner (in this example, the role is iamadmin). If you need to specify another Postgres role, connect to the database under this owner (or superuser) role and run the following commands:
GRANT ALL PRIVILEGES ON DATABASE "iam" TO "iamadmin";
GRANT USAGE ON SCHEMA public TO "iamadmin";
GRANT CREATE ON SCHEMA public TO "iamadmin";
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "public" TO "iamadmin";
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "public" TO "iamadmin";
Ensure that the database owner role has the CONNECT and TEMPORARY privileges.
If the error "New encoding (UTF8) is incompatible with the encoding of the template database" occurs, create a database by using the command: CREATE DATABASE "iam" ENCODING 'UTF8' OWNER "iamadmin" TEMPLATE template0; instead of: CREATE DATABASE "iam" ENCODING 'UTF8' OWNER "iamadmin";
The Administration Server does not remove the IAM database automatically when uninstalling or moving the server to another device, you must remove the database manually.
After the installation finishes, the Administration Server will use the created database to store the Administration Server data. Administration Server is ready to use.