Databases Overview
DanubeData provides fully managed database instances with MySQL, PostgreSQL, and MariaDB support.
What are Database Instances?
Database instances are managed database servers that provide:
- Automated Setup: Deploy in minutes
- Automated Backups: Daily backups with 7-day retention
- High Availability: Read replicas and automatic failover
- Monitoring: Real-time performance metrics
- Security: Firewall integration and encryption
Supported Database Engines
MySQL
- Versions: 8.0, 8.4
- Use cases: Web applications, e-commerce, CMS
- Features: InnoDB storage, full-text search, JSON support
PostgreSQL
- Versions: 14, 15, 16, 17
- Use cases: Analytics, complex queries, GIS applications
- Features: JSONB, full-text search, PostGIS support
MariaDB
- Versions: 10.6, 10.11, 11.0
- Use cases: Drop-in MySQL replacement
- Features: Improved performance, better replication
Key Features
📊 Performance Monitoring
- Real-time CPU, memory, and disk metrics
- Query performance tracking
- Connection monitoring
- Slow query logs
🔒 Security
- Firewall protection
- Private networking
- Encrypted connections (TLS/SSL)
- Encrypted backups
💾 Automated Backups
- Daily automated backups
- 7-day retention period
- Point-in-time recovery
- Manual snapshots
📈 Scalability
- Read replicas for scaling reads
- Vertical scaling (resize instances)
- Connection pooling
⚙️ Customization
- Custom parameter groups
- Version selection
- Storage configuration
Getting Started
Create a Database
- Navigate to Databases in the main menu
- Click Create Database Instance
- Select your database engine (MySQL, PostgreSQL, or MariaDB)
- Choose a version
- Select a resource profile
- Configure networking and security
- Click Create Database
Your database will be ready in 2-3 minutes!
Connect to Your Database
Once your database is running, you'll receive:
- Hostname: The connection endpoint
- Port: Database port (3306 for MySQL/MariaDB, 5432 for PostgreSQL)
- Username: Database username
- Password: Secure password (shown once)
Example Connection String:
mysql -h your-db-hostname -P 3306 -u admin -p
Resource Profiles
| Profile | vCPU | RAM | Storage | Price/hour |
|---|---|---|---|---|
| Micro | 1 | 1 GB | 10 GB | $0.010 |
| Small | 2 | 2 GB | 25 GB | $0.020 |
| Medium | 4 | 4 GB | 50 GB | $0.040 |
| Large | 8 | 8 GB | 100 GB | $0.080 |
| XL | 16 | 16 GB | 200 GB | $0.160 |
Read Replicas
Scale read operations by creating replicas:
- Go to your database instance page
- Click Replicas tab
- Click Add Replica
- Select a node and resource profile
- Click Create Replica
Benefits
- Offload read queries from primary
- Geographic distribution
- Automatic synchronization
- Promote to primary if needed
Backups & Recovery
Automated Backups
- Performed daily automatically
- 7-day retention
- No performance impact
- Stored securely
Manual Snapshots
- Go to your database page
- Click Snapshots tab
- Click Create Snapshot
- Enter a name
- Click Create
Restore from Backup
- Navigate to Snapshots
- Click Restore on a snapshot
- Choose to restore to existing or new instance
Parameter Groups
Customize database configuration:
- Navigate to Parameter Groups
- Click Create Parameter Group
- Select database engine and version
- Configure parameters
- Attach to your database instance
Monitoring
Track database performance:
Key Metrics
- CPU Usage: Monitor compute resources
- Memory Usage: Track RAM and buffer pool
- Connections: Active and max connections
- Queries per Second: Throughput
- Disk I/O: Read/write operations
- Replication Lag: For replicas
Alerts (Coming Soon)
Set up alerts for:
- High CPU usage
- Memory exhaustion
- Connection limits
- Replication lag
Best Practices
Performance
- Use appropriate indexes
- Optimize queries
- Configure buffer pool size
- Use connection pooling
- Monitor slow queries
Security
- Use strong passwords
- Enable firewalls
- Use private networks
- Restrict access by IP
- Enable SSL/TLS
Reliability
- Enable automated backups
- Take manual snapshots before major changes
- Test restore procedures
- Monitor replication lag
- Set up read replicas
Cost Optimization
- Right-size your instance
- Clean up old data
- Archive historical data
- Delete unused snapshots
Troubleshooting
High CPU Usage
- Identify slow queries
- Add missing indexes
- Optimize queries
- Consider upgrading instance
Connection Errors
- Check firewall rules
- Verify connection details
- Check max connections setting
- Review connection pool settings
Replication Lag
- Check network connectivity
- Review primary load
- Increase replica resources
- Optimize queries on primary
Next Steps
- MySQL Documentation
- PostgreSQL Documentation
- MariaDB Documentation
- Database Replicas
- Parameter Groups
Need help? Contact our support team through the dashboard.