24 lines
693 B
Plaintext
Executable File
24 lines
693 B
Plaintext
Executable File
postgres@ctcloud:/var/www/html$ psql
|
|
psql (13.11 (Debian 13.11-0+deb11u1))
|
|
Type "help" for help.
|
|
|
|
postgres=# create database owncloud;
|
|
CREATE DATABASE
|
|
postgres=# create user owncloud with encrypted password 'Datel123456';
|
|
CREATE ROLE
|
|
postgres=# grant all privileges on database owncloud to owncloud;
|
|
GRANT
|
|
postgres=# CREATE USER zbx_monitor WITH PASSWORD 'datel1234' INHERIT;
|
|
CREATE ROLE
|
|
postgres=# ^[[200~GRANT pg_monitor TO zbx_monitor;~
|
|
ERROR: syntax error at or near "
|
|
INE 1: GRANT pg_monitor TO zbx_monitor;
|
|
^
|
|
postgres-# GRANT pg_monitor TO zbx_monitor;
|
|
ERROR: syntax error at or near "~"
|
|
LINE 1: ~
|
|
^
|
|
postgres=# GRANT pg_monitor TO zbx_monitor;
|
|
GRANT ROLE
|
|
postgres=#
|