https://github.com/overextended/oxmysql
MySQL resource for FXServer.
https://github.com/overextended/oxmysql
fivem mysql
Last synced: about 1 month ago
JSON representation
MySQL resource for FXServer.
- Host: GitHub
- URL: https://github.com/overextended/oxmysql
- Owner: overextended
- License: lgpl-3.0
- Created: 2021-08-15T13:38:12.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-04-24T23:14:10.000Z (about 2 months ago)
- Last Synced: 2026-04-25T01:35:19.349Z (about 2 months ago)
- Topics: fivem, mysql
- Language: TypeScript
- Homepage: https://overextended.dev/oxmysql
- Size: 1.22 MB
- Stars: 340
- Watchers: 27
- Forks: 269
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# oxmysql
A FiveM resource to communicate with a MySQL database using [node-mysql2](https://github.com/sidorares/node-mysql2).




## ๐ Links
- ๐พ [Download](https://github.com/overextended/oxmysql/releases/latest/download/oxmysql.zip)
- Download the latest release directly.
- ๐ [Documentation](https://overextended.dev/oxmysql)
- For installation, setup, and everything else.
- ๐ฆ [npm](https://www.npmjs.com/package/@overextended/oxmysql)
- Use our npm package for enhanced functionality and TypeScript support.
## โจ Features
- Support for mysql-async and ghmattimysql syntax.
- Promises / async query handling allowing for non-blocking and awaitable responses.
- Improved performance and stability compared to other options.
- Support for named and unnamed placeholders, improving performance and security.
- Support for URI connection strings and semicolon separated values.
- Improved parameter checking and error handling.
## ๐งพ Logging
We have included a module for submitting error logs to [Fivemanage](https://fivemanage.com/?ref=overextended), a cloud management service tailored for game servers. Additional logging options and support for other services will be available in the future.
## Lua Language Server
- Install [Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) to ease development with annotations, type checking, diagnostics, and more.
- See [ox_types](https://github.com/overextended/ox_types) for our Lua type definitions.