Dev.to
7/12/2026

100 Days of DevOps and Cloud (AWS), Day 9: A Database That Won't Start Is Usually a Permissions Problem
Short summary
Day 9 of a DevOps series covers two tasks: reviving a failed MariaDB service by reading logs to discover a permissions issue on /run/mariadb, and enabling EC2 termination protection via the AWS CLI. The core lesson is to slow down and diagnose before acting—logs reveal the root cause, and safeguards make destructive actions deliberately awkward.
- •MariaDB failed to start because /run/mariadb was owned by root instead of mysql; fix with chown and restart
- •Enable EC2 termination protection with --disable-api-termination flag and verify via describe-instance-attribute
- •Both tasks reinforce the discipline of reading logs and confirming state before taking action
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



