zabbix / zabbix-docker

Official Zabbix Dockerfiles
https://www.zabbix.com
GNU Affero General Public License v3.0
2.38k stars 1.37k forks source link

cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?) #591

Closed mmfei closed 4 years ago

mmfei commented 4 years ago
wget https://raw.githubusercontent.com/zabbix/zabbix-docker/4.4/kubernetes.yaml;

IP="Your hosts ip"; # eg: 192.169.0.110
sed "s/\<Specify external IP here\>/192.169.0.110/' -i kubernetes.yaml;
kubectl apply -f kubernetes.yaml;

if the zabbix service is not running. View log like : "cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)"

try:

wget -c https://cdn.zabbix.com/stable/4.4.8/zabbix-4.4.8.tar.gz;
tar xvzf zabbix-4.4.8.tar.gz;

drop truncate database zabbix.
and import ( zabbix-4.4.8/database/mysql/schema.sql , zabbix-4.4.8/database/mysql/image.sql , zabbix-4.4.8/database/mysql/data.sql)
dotneft commented 4 years ago

please show full log