oxmysql icon indicating copy to clipboard operation
oxmysql copied to clipboard

Common issues

Open thelindat opened this issue 3 years ago • 0 comments

Unable to establish a connection

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

  • ensure you have configured your mysql_connection_string correctly
  • ensure your database exists and is running
  • try using an alternate connection string or removing reserved characters ; , / ? : @ & = + $ #

No such export in resource oxmysql

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

  • oxmysql has not yet started when you called the export
  • you are attempting to run oxmysql without building the source code or using a release build
  • you have simply called an invalid export

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.

thelindat avatar Nov 14 '22 01:11 thelindat