Skip to content

Latest commit

 

History

History
107 lines (89 loc) · 6.31 KB

cmi-migrate-database.md

File metadata and controls

107 lines (89 loc) · 6.31 KB

FAQ - CMI Migrate database

FAQ Menu

CMI and Bungeecord info-, • Chance example, • CMI Chat manager, • Chat format info, • Chat filter, • Chat rooms, • CMI Commands info, • Custom Join and Leave, • CMI Economy manager, • Event commands, • Extending commands, • Getting started with CMI, • Glow info, • Create custom /help, • CMI Hex colors, • Importing data into CMI, • CMILib library info, • Customizing CMI Locale, • CMI Chat with LuckPerms prefix, • Migrate to MySQL database, • Player stuck in Mode?, • User-moderation info, • More message commands, • MOTD, • Parameters explained, • Ranks info, • Create custom /rules, • Running CMI, • Safety tips, • Specialized commands info, • Toggle example, • Trash example, • CMI Vote manager, • Worth info.

Official Zrips Links
  • Zrips Website
    https://www.zrips.net/
    The official website, wiki/documentation/information
  • Zrips Discord
    https://discord.gg/dDMamN4
    The official Discord community server with member-driven support
  • Zrips Github
    https://github.com/Zrips
    The place for bug reports and feature suggestions
Prerequisites
  • Buy and Download CMI (premium plugin)
    https://www.spigotmc.org/resources/3742/
    Get the CMI plugin if you haven't already, and then install it on all your servers
  • Also Download CMILib (free library) (more info)
    https://www.spigotmc.org/resources/87610/
    All Zrips plugins require the CMILib .jar file. Get it and also put it on all your servers.
  • All my FAQ pages have been written for Spigot / Paper 1.20.x and CMI 9.6.x.x or newer.
  • The mrfdev Github page is not an official resource, we're building up our knowledge base as a courtesy.
  • I am an admin on the Zrips Discord, this does not mean what I share on here is official.

ℹ️ Database migration

This feature allows you to convert your CMI SQLite3 database to a MySQL database.

Please note that this isn't an migration feature to convert you from other plugins' databases to CMI, and that if you have bungee that you really shouldn't not use the same database for all your instances.

ℹ️ Commands

> cmi checkcommand migrate
 --------------------------------------------------
 1. migratedatabase

ℹ️ Permissions

> cmi checkperm migrate
 --------------------------------------------------
 1. cmi.command.migratedatabase - Changes database system and migrates all data
>

ℹ️ Documentation

Not really existing, https://www.zrips.net/cmi/commands/

ℹ️ Setup

CMI has a Settings/DataBaseInfo.yml file you have to edit to point to the MySQL database. I recommend to backup the server, turn on maintenance mode, then edit the DataBaseInfo file and turn on maintenance mode for the server (make sure there are no players online). Do not log in.

Then from console run the migration command and give it reasonable time to complete. When you believe it's done. Stop the server, check your m database to see if any cmi data is in there. If so then you can start your server again without maintenance mode.

Side note: make a full back up of your server before making changes to it.