Áú»¢¶Ä²©

This is a translation of the original English documentation page. Help us make it better.

1 Adatb¨¢zis l¨¦trehoz¨¢sa

?³Ù³Ù±ð°ì¾±²Ô³Ù¨¦²õ

A Áú»¢¶Ä²© telep¨ªt¨¦se sor¨¢n l¨¦tre kell hozni egy Áú»¢¶Ä²© adatb¨¢zist szerver vagy proxy.

Ez a r¨¦sz a Áú»¢¶Ä²© adatb¨¢zis l¨¦trehoz¨¢s¨¢ra vonatkoz¨® utas¨ªt¨¢sokat tartalmazza. A minden t¨¢mogatott adatb¨¢zishoz k¨¹l?n utas¨ªt¨¢sk¨¦szlet ¨¢ll rendelkez¨¦sre.

Az UTF-8 az egyetlen k¨®dol¨¢s, amelyet a Áú»¢¶Ä²© t¨¢mogat. Ismeretes, hogy m?k?dik biztons¨¢gi hib¨¢k n¨¦lk¨¹l. A felhaszn¨¢l¨®knak tudniuk kell, hogy vannak ismertek biztons¨¢gi probl¨¦m¨¢kat, ha m¨¢s k¨®dol¨¢sokat haszn¨¢l.

Ha a , a k?vetkez?ket kell futtatnia:

$ make dbschema

miel?tt a k?vetkez? l¨¦p¨¦sekre l¨¦pne.

MySQL

Az utf8 (m¨¢s n¨¦ven utf8mb3) ¨¦s az utf8mb4 karakterk¨¦szletek t¨¢mogatottak (a utf8_bin ¨¦s utf8mb4_bin egybevet¨¦s) a Áú»¢¶Ä²© sz¨¢m¨¢ra szerver/proxy, hogy megfelel?en m?k?dj?n a MySQL adatb¨¢zissal. Javasoljuk, hogy haszn¨¢lja az utf8mb4-et az ¨²j telep¨ªt¨¦sekhez.

shell> mysql -uroot -p<Âá±ð±ô²õ³ú¨®>
       mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
       mysql> create user 'zabbix'@'localhost' identified by '<password>';
       mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost';
       mysql> quit;

::: megjegyz¨¦s figyelmeztet¨¦s Ha a Áú»¢¶Ä²© ³¦²õ´Ç³¾²¹²µ´Ç°ì²ú¨®±ô telep¨ªt, hagyja abba itt, ¨¦s folytassa a k?vetkez?re vonatkoz¨® utas¨ªt¨¢sokkal RHEL vagy Debian/Ubuntu az adatok adatb¨¢zisba import¨¢l¨¢s¨¢hoz. :::

Ha a Áú»¢¶Ä²©ot forr¨¢sb¨®l telep¨ªti, folytassa az adatok import¨¢l¨¢s¨¢val az adatb¨¢zisba. Áú»¢¶Ä²© proxy adatb¨¢zis eset¨¦n csak a "schema.sql" legyen import¨¢land¨® (nincs images.sql vagy data.sql):

shell> cd database/mysql
       shell> mysql -uzabbix -p<password> zabbix < schema.sql
       # ¨¢lljon meg itt, ha adatb¨¢zist hoz l¨¦tre a Áú»¢¶Ä²© proxy sz¨¢m¨¢ra
       shell> mysql -uzabbix -p<password> zabbix < images.sql
       shell> mysql -uzabbix -p<password> zabbix < data.sql

log_bin_trust_function_creators a s¨¦ma sikeres import¨¢l¨¢sa ut¨¢n letilthat¨®:

shell> mysql -uroot -p<password> mysql> SET GLOBAL log_bin_trust_function_creators = 0; mysql> quit;

PostgreSQL

You need to have database user with permissions to create database objects. The following shell command will create user zabbix. Specify password when prompted and repeat password (note, you may first be asked for sudo password):

shell> sudo -u postgres createuser --pwprompt zabbix

Now we will set up the database zabbix (last parameter) with the previously created user as the owner (-O zabbix).

shell> sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix

If you are installing from Áú»¢¶Ä²© packages, stop here and continue with instructions for RHEL or Debian/Ubuntu to import the initial schema and data into the database.

If you are installing Áú»¢¶Ä²© from sources, proceed to import the initial schema and data (assuming you are in the root directory of Áú»¢¶Ä²© sources). For a Áú»¢¶Ä²© proxy database, only schema.sql should be imported (no images.sql nor data.sql).

shell> cd database/postgresql
       shell> cat schema.sql | sudo -u zabbix psql zabbix
       # stop here if you are creating database for Áú»¢¶Ä²© proxy
       shell> cat images.sql | sudo -u zabbix psql zabbix
       shell> cat data.sql | sudo -u zabbix psql zabbix

The above commands are provided as an example that will work in most of GNU/Linux installations. You can use different commands, e. g. "psql -U <username>" depending on how your system/database are configured. If you have troubles setting up the database please consult your Database administrator.

TimescaleDB

A TimescaleDB l¨¦trehoz¨¢s¨¢ra ¨¦s konfigur¨¢l¨¢s¨¢ra vonatkoz¨® utas¨ªt¨¢sokat a k¨¹l?n szakasz.

Oracle

Az Oracle adatb¨¢zis l¨¦trehoz¨¢s¨¢ra ¨¦s konfigur¨¢l¨¢s¨¢ra vonatkoz¨® utas¨ªt¨¢sok megtal¨¢lhat¨®k egy k¨¹l?n [szakaszban] (/manual/appendix/install/oracle).

SQLite

Az SQLite haszn¨¢lata csak Áú»¢¶Ä²© proxy eset¨¦n t¨¢mogatott!

Az adatb¨¢zis lesz automatikusan l¨¦trej?n, ha nem l¨¦tezik.

T¨¦rjen vissza a [telep¨ªt¨¦si szakaszhoz] (/manual/installation/install).