How do I use MySQL saving?

Using MySQL saving is fairly simple, but you will need a module before hand.

1) If your host does not have MySQLoo9 downloadable from their control panel, download it at the following URL and follow the instructions: https://github.com/FredyH/MySQLOO/releases

2) Navigate to the following directory: lua/wos/charsys/config/sv_config.lua

3) Enable the UseMySQL in the config. The code is as follows:

wOS.CharSys.Config.UseMySQL = true

4) Configure your login credentials in the block that follows that entry. The code is as follows:

--The MySQL connection info. If you aren't using it, don't worry about it

wOS.CharSys.Config.Host = "localhost" --Your database server ip, or localhost if on the same PC

wOS.CharSys.Config.Port = 3306 --The port of your database server

wOS.CharSys.Config.Username = "root" --The username to login to the database server

wOS.CharSys.Config.Password = "" --The password to login to the database server

wOS.CharSys.Config.Database = "wos-charsys" --The name of the database you want to use

wOS.CharSys.Config.Socket = "" --The socket. If you don't know what this is, you don't need it. Leave it blank.

 

You should be all set after that! If you experience any issues, ensure you have all required modules and that your database allows external connections if not on the same PC.

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How do I use the Cinematic Camera Tool?

To use the Cinematic Camera Tool to place and edit camera locations or create scenes, there are...

What are the console commands?

There is currently only one console command: wos_charsys_toggleconfig It allows you to use the...

Couldn't include file 'includes/modules/mysqloo.lua'

If you are using MySQL data saving and seeing this error, it means your server is missing...

How do I create a custom character?

Creating a character is extremely easy and modular, thanks to our typical formatting. There are...

How do I attach a DarkRP Job to a character?

Creating a character is extremely easy and modular, thanks to our typical formatting. There are...