π ~1 min read
Table of contents
Symptom & Impact
mysql service stays failed, causing API errors and application downtime. Database-dependent services cannot initialize.
Environment & Reproduction
Common on Ubuntu 16.04 with MySQL/MariaDB after abrupt power loss, disk full events, or forced restarts during writes.
Root Cause Analysis
InnoDB crash recovery cannot complete due to corrupted redo logs, permission issues, or insufficient disk space.
Quick Triage
Check systemctl status mysql and tail /var/log/mysql/error.log. Confirm free space and ownership of /var/lib/mysql.
Step-by-Step Diagnosis
Review the exact startup failure stage, test innodb_force_recovery progression carefully, and validate filesystem integrity before write operations.

Solution – Primary Fix
Resolve space/permission issues, run controlled recovery, back up data immediately, then restore normal InnoDB settings and restart mysql under systemd.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Restore from latest consistent backup and replay binlogs, or fail over to replica if recovery risk is high.
Verification & Acceptance Criteria
mysql is active, replication/app connections are healthy, and integrity checks on critical tables pass.
Rollback Plan
Revert to pre-recovery snapshot or backup restore path if data inconsistency appears after restart.
Prevention & Hardening
Enforce graceful shutdown, monitor disk headroom, validate backups regularly, and use replication for fast recovery.
Related Errors & Cross-Refs
Closely related to /var full incidents, OOM events, and filesystem corruption alerts.
Related tutorial: View the step-by-step tutorial for Ubuntu 16.04 LTS.
View all Ubuntu 16.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
MySQL crash recovery docs, InnoDB internals references, and database incident response runbooks.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.