【发布时间】:2016-05-09 09:32:20
【问题描述】:
我正在尝试构建 Zabbix Server 3.0,但遇到了这个问题: 所以我需要用这个指南创建一个 zabbix 数据库:
shell> mysql -uroot -p<password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
mysql> quit;
shell> cd database/mysql
shell> mysql -uzabbix -p<password> zabbix < schema.sql
# stop here if you are creating database for Zabbix proxy
shell> mysql -uzabbix -p<password> zabbix < images.sql
shell> mysql -uzabbix -p<password> zabbix < data.sql
但是当我到达cd database/mysql 时,我真的不知道我应该去哪里,我尝试了/var/lib/mysql 但是当我到达这一步时mysql -uzabbix -p<password> zabbix < schema.sql 没有schema.sql 并且我找不到它在任何地方。那么我怎样才能找到/创建它,或者它是一个新名称。
【问题讨论】: