Repository navigation
Installation
imshooter edited this page Dec 1, 2026
·
2 revisions
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.
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() {}mysql 0.6.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- The cache
- JSON cells
- Prepared statements
- Transactions
- The ORM
- Passwords
- Errors
- TLS
- Coming from another plugin
- Performance
Reference
Functions
Connections
Queries
Cache
- cache_get_row_count
- cache_get_field_count
- cache_get_result_count
- cache_get_field_name
- cache_get_field_type
- cache_get_field_index
- cache_set_result
- cache_get_value_index
- cache_get_value_index_int
- cache_get_value_index_float
- cache_get_value_index_bool
- cache_is_value_index_null
- cache_get_value_name
- cache_get_value_name_int
- cache_get_value_name_float
- cache_get_value_name_bool
- cache_is_value_name_null
- cache_get_row
- cache_save
- cache_delete
- cache_set_active
- cache_unset_active
- cache_is_any_active
- cache_is_valid
- cache_affected_rows
- cache_insert_id
- cache_warning_count
- cache_get_query_exec_time
- cache_get_query_string
- cache_get_errno