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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -