> For the complete documentation index, see [llms.txt](https://docs.trymito.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trymito.io/mito-ai/database-connectors/database-drivers.md).

# Database Drivers

### What is a Driver?

A driver is a piece of software that enables communication between your computer and a database. Each database provider (e.g., PostgreSQL, Snowflake, MySQL) requires a specific driver to function correctly.

### How Mito AI Handles Drivers

Mito AI manages database drivers for you automatically. When you attempt to connect to a database through Mito AI:

1. **Driver Check**: Mito AI checks whether the required driver is already installed in your environment.
2. **Automatic Installation**: If the driver is not found, Mito AI will automatically install the correct pip package.
3. **Environment Awareness**: If you're working within a virtual environment (such as a venv or conda environment), the driver will be installed into the currently active environment.

This process ensures you can focus on your analysis instead of dependency management.

### Which Drivers Are Installed?

Below is a list of drivers Mito AI installs, based on the database you're connecting to:

| Database             | Driver (pip package)  |
| -------------------- | --------------------- |
| Microsoft SQL Server | pyodbc                |
| MySQL                | PyMySQL               |
| Oracle               | oracledb              |
| PostgreSQL           | psycopg2-binary       |
| Snowflake            | snowflake-sqlalchemy  |
| SQLite               | Built-in (no install) |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.trymito.io/mito-ai/database-connectors/database-drivers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
