Skip to content
Xyranaut edited this page Jun 1, 2026 · 9 revisions

omp-MySQL Wiki

Welcome! This wiki is a book — read it top to bottom if you're new, or jump to what you need. It starts from "what even is a database?" and builds up to a full login/register system.

In a hurry?Quick Start (10 minutes) Brand new to open.mp?open.mp basics Hit an error?Troubleshooting & FAQ

Part 1 — Understand it

  1. open.mp basics (total newcomers) — gamemode/component/native/callback
  2. What is MySQL? (start from zero)
  3. How an open.mp server talks to a database — with diagrams
  4. Why omp-MySQL? (vs. SA-MP-MySQL)
  5. MySQL versions & history

Part 2 — Use it

  1. Quick Start (10 minutes) — fastest path to a working connection
  2. Installing MySQL (for complete beginners) — download links + GUI walkthrough
  3. Docker Compose example — run MySQL the tidy way
  4. Getting started
  5. Configuration — credentials, TLS, the safe way
  6. SQL crash course — learn SELECT/INSERT/UPDATE/DELETE from scratch
  7. Designing your tables — schema basics
  8. Storing game data — the right column types
  9. Dates & times
  10. Your first queries
  11. Async patterns & pitfalls — the #1 thing to understand
  12. Reading results (result sets) — getting data back
  13. Prepared statements — the safe way to use user input
  14. Passwords & hashing — Argon2id, login/register/change
  15. Transactions — all-or-nothing changes (money transfers)
  16. Models (active-record) — read/write a row without writing SQL
  17. Tutorial: a simple login system from scratch — step by step
  18. The mysql-admin demo — a full login/register system to learn from

Part 3 — Build it & go deeper

  1. Building from source — Windows · Linux · macOS
  2. Native reference — every mysql_* function
  3. Performance & best practices — keep your server smooth
  4. Multiple connections & databases — when one isn't enough
  5. Backups & maintenance — don't lose your players' data
  6. VECTOR & similarity search — MySQL 9.0+ AI features
  7. Migrating from SA-MP-MySQL
  8. Security — threat model, hardening, what we pentested

Reference


Never used a database? Start at What is MySQL? — it assumes you know nothing and explains everything with simple pictures.

Clone this wiki locally