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.
- In server.cfg, move
ensure oxmysqlto the very top of your resource block, before your framework and any script that queries the database. - Confirm oxmysql itself starts without errors.
- Verify your
mysql_connection_stringis set correctly. - 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.