ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
Databasecrash

No such export fetchSync in resource oxmysql

Also seen as: No such export in resource oxmysql oxmysql export not found no such export execute oxmysql

What causes it

A resource tried to use an oxmysql export before oxmysql had started — oxmysql isn't running, or it starts after the resource that calls it.

How to fix it

Start oxmysql before anything that uses the database.

  1. In server.cfg, move ensure oxmysql to the very top of your resource block, before your framework and any script that queries the database.
  2. Confirm oxmysql itself starts without errors.
  3. Verify your mysql_connection_string is set correctly.
  4. Restart and confirm the export error is gone.

Related errors

Related guides

Still stuck? We can help.

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.