Installazione di Zabbix con Docker

From RVM Wiki
Revision as of 11:35, 12 July 2023 by Gabriele.vivinetto (talk | contribs) (Created page with "{{Stub}} * Limitare i binlog a tre giorni, altrimenti occupa troppo spazio: cat env_vars/.MYSQL_ROOT_PASSWORD docker exec -it zabbix-mysql-server-1 bash mysql -u root -p SHOW BINARY LOGS; PURGE BINARY LOGS TO 'binlog.xxxxxx'; * Change automatic default purge expiry from 30days (deafault) to 3days SET GLOBAL binlog_expire_logs_seconds = 259200; SET PERSIST binlog_expire_logs_seconds = 259200; * The above value is in seconds, i.e. 3 days in seconds = (60...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Attenzione questo articolo è ancora incompleto.
Sentiti libero di contribuire cliccando sul tasto edit.
  • Limitare i binlog a tre giorni, altrimenti occupa troppo spazio:
cat env_vars/.MYSQL_ROOT_PASSWORD 
docker exec -it  zabbix-mysql-server-1 bash
mysql -u root -p
SHOW BINARY LOGS;
PURGE BINARY LOGS TO 'binlog.xxxxxx';
  • Change automatic default purge expiry from 30days (deafault) to 3days
SET GLOBAL binlog_expire_logs_seconds = 259200;
SET PERSIST binlog_expire_logs_seconds = 259200;
  • The above value is in seconds, i.e. 3 days in seconds = (60 seconds x 60 minutes x 24 hours x 3 days) = 259200

Riferimenti