ModsJava
Generic SQL UUID updater
Minecraft Java mod. Download on the author's site.
⬇ Download on SpigotA program to update UUIDs in an arbitrary database table.
Sometimes you want to switch from offline to online uuids (or vice versa), or a plugin's migration script is broken and you end up with a database full of empty UUIDs, this is a program to update the UUIDs in an SQL table from a column in the same table containing usernames.
If you're not familiar with SQL or don't have time to figure out your plugin's undocumented SQL schema, you probably shouldn't be messing with this.
Supported databases:
Backup your databases before using this tool!
Example usage:
Source:
https://github.com/cybertiger/save-converter
Builds: http://cyberiantiger.org/jenkins/job/sql-converter/
![[IMG]](//proxy.spigotmc.org/9c91d77a0b024afc1d12d1caa95038bcb209d4b8?url=https%3A%2F%2Fwww.paypalobjects.com%2Fen_US%2Fi%2Fbtn%2Fbtn_donateCC_LG.gif)
Sometimes you want to switch from offline to online uuids (or vice versa), or a plugin's migration script is broken and you end up with a database full of empty UUIDs, this is a program to update the UUIDs in an SQL table from a column in the same table containing usernames.
If you're not familiar with SQL or don't have time to figure out your plugin's undocumented SQL schema, you probably shouldn't be messing with this.
Supported databases:
- MySQL
- Postgresql
- H2
- Derby
Backup your databases before using this tool!
Code (Text):
Usage: java -jar sql-converter.jar [-R <rate>] [-n] [-d] [-o] [-F] [-u <username>] [-p <password>] <database url> <table> <name column> <uuid column>
-R <rate> - Maximum number of queries per 10 minutes, default 600
-n - dry run, don't do anything.
-d - Delete rows for names with no valid UUID.
-o - Use offline UUIDs
-F - Update existing UUIDs, don't just replace NULL
-V - Don't skip rows with invalid UUIDS
-e <char> - Escape for table and column names, default: none
-u <username> - Database username
-p <password> - Database password
-f <format> - UUIDs use the specified format
java - Java's built in UUID format including '-' (default)
numeric - Use BigDecimal
hexadecimal - Hex format, like java's without -
mojang - Hex format, like java's without -, and no leading zeros
-R <rate> - Maximum number of queries per 10 minutes, default 600
-n - dry run, don't do anything.
-d - Delete rows for names with no valid UUID.
-o - Use offline UUIDs
-F - Update existing UUIDs, don't just replace NULL
-V - Don't skip rows with invalid UUIDS
-e <char> - Escape for table and column names, default: none
-u <username> - Database username
-p <password> - Database password
-f <format> - UUIDs use the specified format
java - Java's built in UUID format including '-' (default)
numeric - Use BigDecimal
hexadecimal - Hex format, like java's without -
mojang - Hex format, like java's without -, and no leading zeros
Code (Text):
java -jar sql-converter-1.0-SNAPSHOT.jar -f hexadecimal -d -u gesuit -p password jdbc:mysql://localhost/gesuit bans banned_playername banned_uuid
Builds: http://cyberiantiger.org/jenkins/job/sql-converter/
![[IMG]](http://proxy.spigotmc.org/9c91d77a0b024afc1d12d1caa95038bcb209d4b8?url=https%3A%2F%2Fwww.paypalobjects.com%2Fen_US%2Fi%2Fbtn%2Fbtn_donateCC_LG.gif)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Generic SQL UUID updater is a free Minecraft Java mod. Downloaded 890 times (via Spigot). Download it and open it directly in the game.