mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
feat(mysql): start moving docs
This commit is contained in:
1 parent
ee76abb4db
commit
7f636ad7e7
11 files changed
+566
-1
No files matched your search
@@ -1,3 +1,36 @@
|
||||
---
|
||||
title: Installation
|
||||
title: Getting Started
|
||||
---
|
||||
|
||||
## Installation
|
||||
- Download the [latest build](https://github.com/overextended/oxmysql/releases/latest) of oxmysql (not the source code).
|
||||
- Extract the contents of the archive to your resources folder.
|
||||
- Start the resource near the top of your resources in your `server.cfg`.
|
||||
- If you have a lot of streamed assets, load them first to prevent timing out the connection.
|
||||
|
||||
|
||||
## Configuration
|
||||
You can change the configuration settings by using convars inside your `server.cfg`.
|
||||
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.
|
||||
```
|
||||
set mysql_connection_string "mysql://root:12345@localhost/es_extended?charset=utf8mb4"
|
||||
set mysql_connection_string "user=root;database=es_extended;password=12345;charset=utf8mb4"
|
||||
```
|
||||
Certain special characters are reserved or blocked and may cause issues when used in your password.
|
||||
You can also add the following convars if you require extra information when testing queries.
|
||||
```
|
||||
set mysql_slow_query_warning 150
|
||||
set mysql_debug true
|
||||
```
|
||||
### Using the UI
|
||||
:::info
|
||||
Before using the UI first you have to make sure you have the `mysql_ui` convar set to true:
|
||||
```
|
||||
set mysql_ui true
|
||||
```
|
||||
Also make sure that you have `command` ace permission access, then you should be able to use the
|
||||
`mysql` command in game to open up the UI and see your query data.
|
||||
:::
|
||||
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).
|
||||
|
||||
Reference in new issue
Block a user