troubleshooting / Database Issues
No results for ""
Database Issues
Check MariaDB Status
# View MariaDB container logs
demyx log domain.tld -d
# Follow MariaDB logs in real time
demyx log domain.tld -df
# Docker container status
demyx compose domain.tld psMariaDB Container Won't Start
Common cause: Corrupted InnoDB transaction log or data directory.
Steps:
- Check logs for errors:
demyx log domain.tld -d- Try force-recreating:
demyx compose domain.tld fr- If that fails, restore from backup:
demyx restore domain.tld -dDatabase Restore from Backup
# Restore database from today's backup
demyx restore domain.tld -d
# Restore from specific date
demyx restore domain.tld -d --date=2025-10-01Manual Database Export/Import
# Export database
demyx wp domain.tld db export /tmp/backup.sql
# Copy out of container
docker cp domain_tld_wp:/tmp/backup.sql ./backup.sql
# Import database
docker cp ./backup.sql domain_tld_wp:/tmp/backup.sql
demyx wp domain.tld db import /tmp/backup.sqlDatabase Credentials Reset
If you need to reset database credentials (--clean):
demyx config domain.tld --cleanThis:
- Exports the current database
- Regenerates credentials
- Imports the database with new credentials
- Force-downloads WordPress core files
- Refreshes WordPress salts
Search and Replace
After migrating a site or changing the domain:
demyx wp domain.tld search-replace 'http://old-domain.tld' 'https://new-domain.tld' --skip-columns=guidAccess MariaDB Shell
# Open MariaDB shell
demyx exec domain.tld -d
# Or via docker exec
demyx exec domain.tld -d mysql -u demyx -pOptimize Tables
demyx wp domain.tld db optimizeCheck Table Integrity
demyx wp domain.tld db check