Home / Docs / MySQL Community Server (Hardened) / Troubleshooting
| Symptom | Check | Fix |
|---|---|---|
| Can't connect remotely | bind-address (AWS: /etc/my.cnf AND my.cnf.d/zz-hardening.cnf; GCE: /etc/mysql/mysql.conf.d/zz-hardening.cnf); cloud firewall | Both must be opened deliberately — see deploy step 2. |
| `sudo mysql` denied (AWS) | ls /var/lib/mysql-firstboot.done | If missing, first boot hasn't finished or failed: `journalctl -u mysql-firstboot` (the unit retries on the next boot rather than stamping done with root locked out). |
| mysqld won't start after config edit | `journalctl -u mysqld -n 50` (AWS) / `journalctl -u mysql -n 50` (GCE) | Revert the edit; on AWS keys in /etc/my.cnf override my.cnf.d — check both. |
sudo mysql -e 'SELECT 1' (AWS: first boot is complete when /var/lib/mysql-firstboot.done exists; GCE: ready as soon as the mysql service is active)