Skip to content

Installation

imshooter edited this page Dec 1, 2026 · 2 revisions

Files

A release has a zip for Windows and one for Linux, each with the binary, mysql.inc and the licenses of the libraries linked into it.

File Where it goes
mysql.dll or mysql.so components on open.mp, or plugins as a legacy plugin
mysql.inc the include folder of the compiler

On SA-MP, add the binary to the plugins line of server.cfg. On open.mp, a binary in plugins is listed in legacy_plugins of config.json, and one in components needs no setting.

The Linux build needs glibc 2.28 or later. OpenSSL 3.0 is linked into it, so it needs no other library.

First start

The server prints the version of the plugin and of MariaDB Connector/C when it loads:

mysql 0.6.0 with MariaDB Connector/C 3.4.11.

A script includes it once:

#include <open.mp>
#include <mysql>

main() {}

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally