Zabbix 3.0 MySQL database i cannot find databases/mysql schema.sql -
i trying build zabbix server 3.0, encountered issue: need create zabbix database guide:
shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant privileges on zabbix.* zabbix@localhost identified '<password>'; mysql> quit; shell> cd database/mysql shell> mysql -uzabbix -p<password> zabbix < schema.sql # stop here if creating database zabbix proxy shell> mysql -uzabbix -p<password> zabbix < images.sql shell> mysql -uzabbix -p<password> zabbix < data.sql
but when cd database/mysql
don't know should go, tried /var/lib/mysql
when step mysql -uzabbix -p<password> zabbix < schema.sql
there no schema.sql
, can't find anywhere. how can find/create or new name.
if installed source, should source directory.
if installed package repositories, depends on distribution , repository. example, if installed zabbix repository on redhat system, sql might located in /usr/share/doc/zabbix-server-mysql-3.0.0/create
.
some packages might combine 3 sql files in one, have create.sql.gz
. can import directly "zcat create.sql.gz | mysql zabbix". if want see sql file, can extract 'tar -xvf create.sql.gz' in single step.
Comments
Post a Comment