overextended / oxmysql

MySQL resource for FXServer.
https://overextended.dev/oxmysql
GNU Lesser General Public License v3.0
316 stars 194 forks source link

Common issues #154

Open thelindat opened 1 year ago

thelindat commented 1 year ago

Unable to establish a connection

This is an incredibly generic error, but generally speaking you should

No such export in resource oxmysql

The export you have called does not exist. This could be for a few reasons,

Download the latest release and ensure it is the first resource in your resource start order.

DECIMAL types are returned as a string

Enable the decimalNumbers setting to change this behaviour; however this may result in loss of precision.

Multiple statements cannot be executed in a single query

This option is disabled to prevent easy SQL injection (see https://forum.cfx.re/t/database-tables-are-deleted/4764756) due to poor practices (especially string concatenation and lack of sanitisation).

You can enable the option with multipleStatements, but we strongly suggest you don't.

AUTH_SWITCH_PLUGIN_ERROR (auth_gssapi_client)

See https://github.com/overextended/oxmysql/issues/213.