Guides
Step-by-step tutorials to help you get the most out of MynaDB. From basic operations to advanced configurations.
Getting Started
Quick Start
Get up and running in 5 minutes. Write your first data and run your first query.
Read guide →Installation
Build from source, Docker deployment, and system requirements.
Read guide →Configuration
All configuration options with detailed explanations and examples.
Read guide →Data Operations
Writing Data
InfluxDB Line Protocol format, field types, and best practices for ingestion.
Read guide →SQL Queries
Complete SQL guide: SELECT, JOIN, aggregations, window functions, and more.
Read guide →Query Examples
Ready-to-use examples for common time series operations.
Read guide →Storage & Maintenance
Compaction
Understanding LSM-style compaction, tuning, and manual triggering.
Read guide →Retention Policies
Automatic data expiration and manual partition management.
Read guide →Storage
Parquet format, partitioning strategies, and storage optimization.
Read guide →Integration
Arrow Flight
High-performance gRPC streaming for analytics tools and dashboards.
Read guide →Grafana Integration
Connect MynaDB to Grafana for real-time dashboards.
Read guide →Telegraf Integration
Collect metrics from your infrastructure with Telegraf.
Read guide →High Availability
Master-Slave Replication
Set up master-slave replication for fault tolerance and read scaling.
Read guide →Failover
Manual and automatic failover procedures for zero downtime.
Read guide →HA Monitoring
Monitor replication lag, connection status, and cluster health.
Read guide →Featured Guide: SQL Queries
MynaDB supports full SQL via Apache DataFusion. Here's a quick reference for common query patterns:
Basic Query
curl 'http://localhost:7000/query/mydb' -d 'SELECT * FROM cpu LIMIT 10'
Aggregation
curl 'http://localhost:7000/query/mydb' -d "
SELECT host, AVG(usage) as avg_cpu
FROM cpu
GROUP BY host
ORDER BY avg_cpu DESC
"
JOIN Query
curl 'http://localhost:7000/query/mydb' -d "
SELECT c.host, c.usage as cpu, m.used as memory
FROM cpu c
JOIN memory m ON c.host = m.host
WHERE c.usage > 80
"
Check out the full SQL guide and examples page for comprehensive coverage.
Featured Guide: Retention Policies
MynaDB supports automatic data expiration to manage disk space.
Configure retention in config.toml:
[retention]
enabled = true # Enable background retention
default_days = 7 # Delete data older than 7 days
interval_secs = 3600 # Check every hour
Manual retention via API:
# Delete partitions older than 30 days
curl -X POST http://localhost:7000/retention/mydb/default/cpu \
-H "Content-Type: application/json" \
-d '{"older_than_days": 30}'