Skip to content

mysql_global_options

imshooter edited this page Dec 1, 2026 · 2 revisions

Set an option of the plugin.

native bool:mysql_global_options(E_MYSQL_GLOBAL_OPTION:type, value);

With open.mp names, from the same include:

native bool:MySQL_SetGlobalOption(E_MYSQL_GLOBAL_OPTION:type, value);

Parameters

Parameter Description
E_MYSQL_GLOBAL_OPTION:type DUPLICATE_CONNECTIONS lets mysql_connect open a second handle with the same settings, and DUPLICATE_CONNECTION_WARNING logs when it gives one again.
value true or false.

Returns

  • true when it was set.
  • false when the option does not exist.

Home

Guides

Reference

Functions

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

Clone this wiki locally