formatting and typos

This commit is contained in:
DokaDoka committed 2022-12-11 15:00:43 +11:00
1 parent 75698216e0
commit 724c7e356d
99 files changed
+515 -305

No files matched your search

+10 -12
View File
@@ -31,23 +31,21 @@ Reference the following for an idea of how to set your connection options.
You must include one of the following lines, adjusted for your connection and database settings.
:::caution
When using convars do not replicate sensitive information to the client.
When using convars do not replicate sensitive information to the client.
**set** will only be set on the server, while **setr** is replicated.
:::
```
```yaml
set mysql_connection_string "mysql://root:12345@localhost:3306/es_extended?charset=utf8mb4"
set mysql_connection_string "user=root;password=12345;host=localhost;port=3306;database=es_extended;charset=utf8mb4"
```
Certain special characters are reserved or blocked and may cause issues when used in your password.
Certain special characters are reserved or blocked and may cause issues when used in your password.
For more optional settings (such as multiple statements) you can reference [pool.d.ts](https://github.com/sidorares/node-mysql2/blob/master/typings/mysql/lib/Pool.d.ts#L10) and [connection.d.ts](https://github.com/sidorares/node-mysql2/blob/master/typings/mysql/lib/Connection.d.ts#L8).
You can also add the following convars if you require extra information when testing queries.
```json
```yaml
set mysql_slow_query_warning 150
set mysql_debug true
```
@@ -56,7 +54,7 @@ set mysql_debug true
When using the `mysql_debug` convar, rather than setting the value as true, you can send an array and enable debug prints for a set list of resources instead.
```json
```yaml
set mysql_debug [
"ox_core",
"ox_inventory"
@@ -65,7 +63,7 @@ set mysql_debug [
This list can be adjusted during runtime with commands, temporarily adding or removing resources until the resource is restarted.
```
```yaml
oxmysql_debug remove ox_core
oxmysql_debug add ox_core
```
@@ -74,7 +72,7 @@ oxmysql_debug add ox_core
Before using the UI first you have to make sure you have the `mysql_ui` convar set to true:
```json
```yaml
set mysql_ui true
```
@@ -83,14 +81,14 @@ Also make sure that you have `command` ace permission access, then you should be
## Compatibility
You shouldn't run multiple mysql resources to ensure the best experience.
You shouldn't run multiple mysql resources to ensure the best experience.
The resources listed below can be deleted to allow oxmysql to handle the events, without any changes.
### mysql-async
Standard API for mysql-async uses `server_script '@mysql-async/lib/MySQL.lua'`.
Standard API for mysql-async uses `server_script '@mysql-async/lib/MySQL.lua'`.
Raw exports, mostly used in resources written in JavaScript or C#, are _not supported_.
### ghmattimysql
As of v2.4.0, oxmysql can be utilised with ghmattimysql's exports, such as `exports.ghmattimysql:execute`.
As of v2.4.0, oxmysql can be utilised with ghmattimysql's exports, such as `exports.ghmattimysql:execute`.