mirror of
https://github.com/CFC-Servers/cfc_time.git
synced 2025-03-04 03:03:20 -05:00
add documentation for setting up mysql fix error with commandSet
This commit is contained in:
parent
3eff828537
commit
f39f59a569
18
README.md
18
README.md
@ -4,3 +4,21 @@ A drop-in replacement for Utime with multiple storage options, greater customiza
|
||||
## Dependencies
|
||||
- [CFCLogger](https://github.com/CFC-Servers/cfc_logger)
|
||||
- [PlayerFullLoad](https://github.com/CFC-Servers/gm_playerload)
|
||||
|
||||
## Using Mysql
|
||||
- Ensure your mysql server has ssl disabled
|
||||
- If you run into an error involving `caching_sha2_password` you can try disabling that for the mysql user `ALTER USER 'yourusername' IDENTIFIED WITH mysql_native_password BY 'youpassword';`
|
||||
- Install mysqloo
|
||||
- Run: `cfc_time_config_set "STORAGE_TYPE" "mysql"` in the server console
|
||||
- Restart the server
|
||||
- Run the following commands in the server console with the values changed to your database credentials
|
||||
`cfc_time_config_set "MYSQL_HOST" "127.0.0.1"`
|
||||
`cfc_time_config_set "MYSQL_USERNAME" "username"`
|
||||
`cfc_time_config_set "MYSQL_PASSWORD" "password"`
|
||||
`cfc_time_config_set "MYSQL_DATABASE" "database"`
|
||||
`cfc_time_config_set "MYSQL_PORT" "3306"`
|
||||
- Restart Server
|
||||
|
||||
|
||||
|
||||
ahxaethaihai2dahvothaix1ooXeiRoo
|
@ -55,7 +55,7 @@ function config.getType( key )
|
||||
end
|
||||
|
||||
local function commandSet( ply, cmd, args )
|
||||
if SERVER and ply:IsValid() and not ply:IsSuperadmin() then return end
|
||||
if SERVER and ply:IsValid() then return end
|
||||
local key = args[1]
|
||||
local value = args[2]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user