Description | This article describes how to solve the error 'Failed to connect to database' to all SQL Database ADOMs. |
Scope | FortiAnalyzer. |
Solution |
There are many possible symptoms of the message, 'Failed to connect to database', such as problems viewing logs, problems viewing information in FortiView or Log View, incorrect information from Devices. This behavior could affect all ADOM's.
diagnose sql process list Failed to connect to database.
diagnose sql hcache status all auto-cache order: oldest-first
ADOM: FortiAnalyzer (FAZADOM108) Hcache Statistics
Hcache Statistics
Hcache Statistics
diagnose sql hcache status all-summary
auto-cache order: oldest-first All ADOM Summary Hcache Statistics
diagnose system fsck harddisk <----- Require restart.
execute sql-local rebuild-db <----- Require restart.
Related documents: FortiAnalyzer Rebuild Database. Backup and restore of FortiAnalyzer settings, logs and reports |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.