Install Zabbix with Docker
1. mysql -uroot -p -h10.10.0.242 zabbix<schema.sql
Enter password:
* ERROR 1709 (HY000) at line 86: Index column size too large. The maximum column size is 767 bytes.*
show variables like '%char%';
+--------------------------+---------------------------------------------------------------------------------------+
| Variable_name | Value |
+--------------------------+---------------------------------------------------------------------------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| character_sets_dir | /data1/mysql_root/base/mysql_wrapper_5_6_28_20160902_tlinux_hz3/mysql/share/charsets/ |
# set character_set_system=utf8mb4;
--------------------------------------------------------------------------
docker run -P --name zabbix-web --link zabbix-server-mysql:zabbix-server -e DB_SERVER_HOST="10.10.0.253" -e MYSQL_USER="zabbix_user" -e MYSQL_PASSWORD="pasword_formysql" -e ZBX_SERVER_HOST="10.10.0.17" -e PHP_TZ="Asia/Shanghai" -d zabbix/zabbix-web-nginx-mysql
--------------------------------------------------------------------------
docker run --name zabbix-server-mysql -p 10051:10051 -e DB_SERVER_HOST="10.10.0.253" -e DB_SERVER_PORT=3306 -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="zabbixserver" -d zabbix/zabbix-server-mysql