The Mini DBA AI Assistant helps database teams interpret live monitoring data, performance symptoms, execution plans, alerts, and estate-level health from inside the Mini DBA Console. It is designed for practical database troubleshooting: ask a question from the page you are already viewing, choose which context to include, and get an explanation or next-step plan that uses the monitoring evidence Mini DBA has already collected.
The AI Assistant is available from many server detail pages through the Ask AI panel. When you open it from a SQL Server, Azure SQL, PostgreSQL, MySQL, MariaDB, or Oracle page, Mini DBA can build a live context snapshot for that server and pass it with your question.
The assistant can help with:
The AI Assistant does not replace database expertise or change the database for you. Treat the response as guided analysis. Confirm important recommendations using Mini DBA evidence, change control, and your normal database administration tools.
When you ask a question from a Mini DBA detail page, the assistant can include a snapshot that identifies the server, database platform, connection status, current page, and time context. The prompt tells the AI provider that the snapshot is live Mini DBA data already collected by the application, so the model should analyze the supplied evidence rather than saying it cannot access live data.
The context can include:
If a live snapshot is not available yet, Mini DBA shows a message asking you to wait for the next refresh and try again. This usually means the page has loaded before the server model or current server-list snapshot has enough data.
The Ask AI panel includes context options so you can control how much evidence is sent.
| Option | What It Adds | When To Use It |
|---|---|---|
| Metrics | CPU, memory, waits, I/O, service-tier, host, database, and model metrics where available. | Use for resource pressure, baseline comparison, and general performance analysis. |
| Sessions | Active sessions, requests, blockers, blocked sessions, MySQL or PostgreSQL session lists, and similar live workload rows where available. | Use for blocking, long running queries, session pile-ups, and query-level triage. |
| Alerts | Active alerts, severity, detected values, thresholds, and alert descriptions. | Use when you want the AI response to explain why Mini DBA is alerting and what to do next. |
Metrics and sessions are enabled by default in the page-level assistant. Alerts are optional by default because alert context can add volume and may include sensitive operational messages. Enable Alerts when the active alert list is relevant to the question.
Several Mini DBA detail pages pass extra context to the AI Assistant. This is especially useful for query and plan analysis because the general server snapshot alone may not contain the exact SQL text, plan shape, expensive operators, or selected row. For the full plan workflow, see Execution Plan Analysis.
Detail-page context may include:
When additional context is present, Mini DBA appends it under an Additional Context section before sending the request. Ask focused questions such as "which operator should I investigate first?", "what evidence suggests missing indexes?", or "what could explain the wait pattern in this plan?".
Mini DBA can use the default AI provider where configured. The default provider includes a limited daily free token allowance per user. The AI panel shows daily token usage when the default provider is active.
Bring Your Own AI, or BYO AI, lets you use your own AI subscription and model from AI Provider Settings. BYO AI is not limited by the default free daily quota because requests are sent to your configured provider. Supported provider choices in the console include OpenAI, Azure OpenAI, OpenAI-compatible APIs, Ollama, and Anthropic Claude.
For setup steps, see Configure BYO AI.
The default free daily token limit is designed to make AI available without requiring every user to configure a provider first. The limit is fixed in the product at 100,000 tokens per user per day for the default provider.
Token use is tracked in the browser for the default provider. If the free daily threshold is reached, Mini DBA explains that the allowance resets tomorrow and links to BYO AI settings. BYO AI uses your own subscription and does not consume the default free token allowance.
For token, privacy, and data-sharing guidance, see AI Context, Privacy, And Tokens.
Use these workflow pages when you want a guided example: