mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-21 18:25:12 +01:00
Page:
Database transition
Pages
Addons
Blueprint Specification v1
Blueprints
Built in Commands
Commands
Config API
Database API
Database transition
Developer Documentation
Flags
Home
How to fill in the addon.yml file
Instalar BentoBox
Install Bentobox
Installer Bentobox
Island Protection, Flags & Ranks
List of BentoBox directories
Migration from ASkyBlock or other plugins
Permissions
Placeholders
Planning wiki
Request Handler API How plugins can get data from addons
Set a BentoBox world as the server default world
Translate BentoBox and addons
2
Database transition
tastybento edited this page 2019-07-22 08:14:59 -07:00
Table of Contents
Database transition
The default database for BentoBox is one that stores files on the file system using JSON (it used to be YAML, but since 1.5.0 it is JSON). This approach should work for most servers. However, it may be that your server has grown to the point where having the database on another machine will help. Alternatively, you may have other software that wants to access that data, e.g., a web site. BentoBox offers the ability to migrate your data from one type of database to another seamlessly.
Steps
- Stop the server
- Make a backup of your database. If it is a flat file database then this means copy the whole database folder to a safe place.
- Edit BentoBox's config.yml file and select a transition database option. They always have the number 2 in them, for example, JSON2MYSQL.
- Ensure that you have also set up the database name, login and password, if required. If you are transitioning to MYSQL then you must make sure the server has the database and it is a sufficiently recent version (5.7 or later)
- If you have a very large database, then a transition may take longer than your server timeout. So edit spigot.yml timeout-time and set it to a large number so the server does not crash out.
- Start the server. BentoBox will immediately transition all islands and some other files to the database.
- After the server is completely up and running, execute the bbox migrate command in the console. This will copy over all the players, names and all the data from the addons to the database.
- You are done!
- You can leave the database as the transition database, or you can now change it to the single database, e.g., MYSQL.
Getting started
- Install BentoBox
- Migration from ASkyBlock or other plugins
- Set a BentoBox world as the server default world
- Database transition