skytech6-CrimsonSQL_SoD icon

CrimsonSQL SoD

Framework for Interfacing MySQL

Last updated a week ago
Total downloads 42
Total rating 0 
Categories Libraries
Dependency string skytech6-CrimsonSQL_SoD-1.3.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.698 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP Unity games. Preconfigured and ready to use.

Preferred version: 6.0.698

README

CrimsonSQL

Framework/Library plugin for accessing a MySQL Database

This is a framework dependency for other mods to utilize MySQL (and other flavors of MySQL) to sync information between servers or for external tools.

For example; CrimsonBanned uses this dependency to sync bans across different servers.

Originally created for V Rising, but works with other IL2CPP BepInEx games.

Installation

  • Install the version of BepInEx that is defined in the Dependencies.
  • Extract CrimsonSQL.dll into (Game/Server Folder)/BepInEx/plugins

I recommend setting your MySQL database to version 8.0.22 if possible or other MySQL 8 versions. May work with other versions 7 & 9 and may work with other flavors of SQL such as MariaDB, but no gurantees.

Config

## The name of your MySQL database.
# Setting type: String
# Default value: 
DatabaseName = crimsonbans_db

You need to setup your MySQL server with an empty database. The tables will be automatically generated in this database by mods that use CrimsonSQL.

## The host address of your MySQL database.
# Setting type: String
# Default value: 
Host = 20.140.81.44

The IP Address of your SQL Server.

## The port of your database server.
# Setting type: Int32
# Default value: 3306
Port = 3306

3306 is the default port of MySQL, but if yours uses another it will need to be supplied here.

## The login username for your database.
# Setting type: String
# Default value: 
Username = crimsonbans

## The login password for your database.
# Setting type: String
# Default value: 
Password = zebraApple32%

The login credentials for your SQL Server. It doesn't need to be root/admin, but it does need read and write permissions to the specified database.

## Some variations of MySQL require additional parameters on the connection string; such as "CharSet=utf8mb4;Convert Zero Datetime=True;Allow Zero Datetime=True;" put those here if needed.
# Setting type: String
# Default value: 
AdditionalParameters = 

If you're having issues with connection to the database, it is possible the connection string is missing additional parameters. This is likely to occur when you use different flavors of MySQL such as MariaDB. Consult documentation or your server provider for what parameters you need to add. I will not help with setting up the connection to your version of SQL.

Verify Install

In your (game / server folder)/BepInEx/LogOutput.log file you will see either a successful connection message

[Info   :   BepInEx] Loading [CrimsonSQL 0.1.10]
[Info   :CrimsonSQL] Connected to MySQL database.

Or an error message that prints out information from SQL on what is wrong. Refer to the SQL Error Documentation for the output error code.

Integration with Other Mods

This mod was created alongside CrimsonBanned. However, any mod can integrate with CrimsonSQL.

Check out the wiki section for documentation on how to integrate this mod as an optional dependency.

Support

Want to support my modding development?

Donations Accepted

ko-fi

Or buy/play my games!

Train Your Minibot

Boring Movies FREE TO PLAY

This mod was a paid creation. If you are looking to hire someone to make a mod for any Unity game reach out to me on Discord! (skytech6)