> 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
