# MyDB: a MySQL-compatible database with native vectors and AI model calls

> MyDB is a MySQL-compatible server that runs transactional and analytical queries on the same data, with vector search, full-text retrieval and SQL calls to external AI models.

- Project: MyDB by yzsind
- List: Built for AI
- Kind: tool
- Works with: Ollama, OpenAI, DashScope, vLLM, LangChain
- Noticed: 239 GitHub stars (when we found it)
- Added: 2026-11-27T19:08:06+00:00
- Web page: https://ai-news.ikangai.com/built/mydb/

MyDB is a database server written in Rust that speaks the MySQL classic protocol, so existing MySQL clients and drivers can connect to it on port 8738. The README says it is meant for mixed workloads that combine transactional reads and writes with analytical queries over the same data. It adds a native VECTOR type, BM25 full-text search, and SQL functions such as AI_GENERATE and AI_EMBED that call external models. Model weights and inference run outside MyDB, and the README's examples use Ollama.

You can set it up with a downloaded binary, a Docker image, or a build with Cargo. According to the README, no config file is needed to start. An optional REST SQL API and an MCP server let agents run parameterized SQL and manage sessions over HTTP. The benchmarks come from the author: sysbench point-select results above one million QPS on 16 cores, plus TPC-derived comparisons with MySQL 8.0 that the README describes as unaudited.

The release is labelled public preview, and RRF hybrid ranking is described as a technical preview. The native storage engine is not InnoDB-compatible, and X Protocol is not supported. Model calls require autocommit outside explicit transactions. The README also notes that HNSW and IVF are the current vector indexes, and that disk residency does not imply a DiskANN implementation.

## In the author's words

> A high-performance MySQL-compatible database for HTAP and AI agents

## When to reach for it

Developers who want embeddings, keyword search and business rows in one SQL engine, instead of a separate vector store and sync job, may find it useful once they have checked the preview limits listed in the README.

## See it

- [MyDB](https://github.com/yzsind/mydb)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
