-
Documentation task
-
Resolution: Fixed
-
Minor
-
None
-
0
In the page below, we mention that commands should be executed with zabbix user ( sudo -u zabbix )
- In addition files schema.sql, images.sql and data.sql are only available in sources. When installing Zabbix from packages, there is only one file - create.sql.gz
https://www.zabbix.com/documentation/4.0/manual/appendix/install/db_scripts#postgresql
shell> cd database/postgresql shell> cat schema.sql | sudo -u zabbix psql zabbix # stop here if you are creating database for Zabbix proxy shell> cat images.sql | sudo -u zabbix psql zabbix shell> cat data.sql | sudo -u zabbix psql zabbix
In this page we allow to choose username on their own.
https://www.zabbix.com/documentation/4.0/manual/installation/install_from_packages/rhel_centos#importing_data
With PostgreSQL: # zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u <username> psql zabbix