# MyXQL

> MySQL driver for Elixir

Source: https://talira.ai/catalog/myxql-8g0pgsdy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Elixir Ecto](https://talira.ai/orgs/elixir-ecto.md)

MyXQL is a MySQL driver for [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md), maintained in the elixir-ecto organisation alongside [Ecto](https://talira.ai/catalog/ecto-dq6bsaxc.md). It encodes and decodes Elixir values over MySQL's text and binary protocols, and through DBConnection supports transactions, prepared queries, streaming and pooling. It works with MySQL 5.5+, 8.0 and MariaDB 10.3, including the mysql_native_password, sha256_password and caching_sha2_password authentication plugins.

## Links

- GitHub: https://github.com/elixir-ecto/myxql
- Docs: https://hexdocs.pm/myxql

## Problems it solves

- connect to MySQL from Elixir
- use MySQL with Ecto in a Phoenix app
- stream large MySQL query results in Elixir

## Features

- text and binary protocol encoding of Elixir values
- transactions, prepared queries, streaming and pooling via DBConnection
- MySQL 5.5+, 8.0 and MariaDB 10.3
- modern MySQL authentication plugins

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.67, adoption 0.49, momentum 0.18, community 0.63, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 11 commits in the last 90 days
- latest release v0.4.0 6.7 years ago
- 297 GitHub stars
- 36 contributors
- backed by Elixir Ecto

## Related

- Works with [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md)
- Works with [MariaDB Server](https://talira.ai/catalog/mariadb-server-bxse0j6g.md)
- Works with [Ecto](https://talira.ai/catalog/ecto-dq6bsaxc.md)

## Alternatives

- [Postgrex](https://talira.ai/catalog/postgrex-wrgb4p9b.md): PostgreSQL driver for Elixir
- [Redix](https://talira.ai/catalog/redix-pqp6dkqy.md): Redis and Valkey client for Elixir

## Sources

[^1]: https://github.com/elixir-ecto/myxql/blob/master/LICENSE.md (checked 29 Nov 2026)
