This mysql-async Library for FiveM intends to provide function to connect to a MySQL in a Sync and Async way. This resource is inspired by fivem-mysql-async
and written by ThymonA
If you want to know how this resource works? check the example.lua
file inside this resource.
Config | Description | Default |
---|---|---|
mysql_connection_string |
MySQL connection string, there are two variants possible: Check Connections strings under this table. |
mysql://root@localhost/fivem |
mysql_level |
Warn level used to print message in console, there are couble of options like: info , debug , warn , error or fatal |
warn |
mysql_slow_query_warning |
When an query takes longer than the defined number, print an query warn message in console to let the server know that the executed query is slow | 500 (ms) |
Variants:
mysql://root:pass1234@localhost/fivem
server=localhost;userid=root;password=pass1234;database=fivem
Make sure you provide all information possible when reporting an issue.
For a detailed changelog either check the commits or read https://github.com/ThymonA/fivem-mysql/releases
- Async / Sync.
- It uses the node-mysql2 library to provide a connection to your mysql server and is faster than the mysql library.