Closed MeFisto94 closed 4 years ago
Sorry for getting back so late, indeed this is solved by updating to MariaDB 10.3+. Now maybe you want to wrap the Exception at table creation and link to some wiki entry telling that 10.3.0 is the minimum required version. Alternatively state it somewhere on the repo, but I guess the first approach, while more hacky, would be more obvious to users running into the problem
Yeah, we're aware of this. Changes have been made to the table creation code so that the key now fits within the (old) MySQL limit. This mostly affects people with old MySQL/MariaDB installs, but we have gotten more reports of this in the Discord.
These should be fixed in the latest release.
Bug Report Template:
Required Information section:
PlotSquared version:
Minecraft Version:
Select one
Server build info:
WorldEdit/FAWE versions:
Description of the problem:
When trying to load the plugin for the first time, some Tables aren't created and the plugin can't work (subsequent errors accord because the tables cannot be found).
How to replicate:
Run PlotSquared on a Debian 9.11 with their MariaDB:
Additional Information:
Research showed that https://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes#16820166 is the cause and indeed when copying the statement for plot_flags and manually truncating the size of value and flag, the statement works.
It seems this is no problem for https://stackoverflow.com/a/52749571 (5.7.7 (MariaDB 10.2.2?)) but I haven't found any hint on this on this repo. We're currently trying to update to a more recent MariaDB Version.
Other plugins being used on the server:
Relevant console output, log lines, and/or screenshots:
Additional relevant comments/remarks:
I omitted some information which is not relevant to the Bug (World Edit Versioning etc)
AFFIRMATION OF COMPLETION: