add documentation for setting up mysql fix error with commandSet

This commit is contained in:
Pierce 2021-09-25 21:13:11 -04:00 committed by Brandon Sturgeon
parent 3eff828537
commit f39f59a569
2 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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]