-
-
Notifications
You must be signed in to change notification settings - Fork 0
MySQL and SQLite database migration
padre edited this page Oct 27, 2024
·
2 revisions
How to migrate to Cold Development ColdBits (SQLite & MySQL)
Warning
Follow the steps carefully to ensure a smooth migration.
Export the Data:
On your server, execute the following command to export your data:
- /bits export
- save the exported data
storage.yml - locate the
storage.ymlfile created by the export command and save it in a secure location (you will need this later) - navigate to your server’s
~/pluginsfolder - install ColdBits
- download
ColdBits.jar - drag and drop the file into your server's plugins folder
- start the server. This will generate a
~./ColdBitsfolder
- drag and drop the saved
storage.ymlfile into the new~/plugins/ColdBitsfolder
- on your server, use the following command to start the import process:
- /bits import
- Confirm the import by typing:
- /bits import confirm
Note
Your SQLite database has been successfully migrated.
Save the MySQL configuration:
Before making any changes, copy the MySQL configuration to config.yml in ~./ColdBits/config/yml.
# Settings for if you want to use MySQL for data management
mysql-settings:
# Enable MySQL
# If false, SQLite will be used instead
# Default: false
enabled: false
# MySQL Database Hostname
# Default: 127.0.0.1
hostname: 127.0.0.1
# MySQL Database Port
# Default: 3306
port: 3306
# MySQL Database Name
# Default:
database-name: ''
# MySQL Database User Name
# Default:
user-name: ''
# MySQL Database User Password
# Default:
user-password: ''
# If the database connection should use SSL
# You should enable this if your database supports SSL
# Default: false
use-ssl: false
# The number of connections to make to the database
# Default: 3
connection-pool-size: 3- install ColdBits
- download
ColdBits.jarand place it in your server's~/pluginsfolder - start the server to generate
~/plugins/ColdBitsfolder - apply the MySQL configuration
- navigate to
~/plugins/ColdBits/config.yml - paste your saved MySQL configuration into the new
config.ymlunder theMySQLsection - restart the server
- after saving the
config.ymlfile, restart your server - the
ColdBitsplugin will now connect to yourMySQL database
Note
Your MySQL database has been successfully migrated ColdBits.
Tip
With these steps, you can easily migrate your ColdBits data, whether you're using SQLite or MySQL.
Cold Development ❄
