Skip to content
Sulky_Whale edited this page May 22, 2026 · 1 revision

Welcome to the ItemMail wiki!

FAQ

How to migrate my database to another type without loosing my data?

Migrating from FlatFile to MySQL

  1. Start your server.
  2. Change your database type in the config.yml to MySQL and fill in the correct credentials to connect to your database:
  database:
    # Choose how to store the data. Valid types are `FlatFile` and `MySQL`.
    type: MySQL
    # These settings only apply if you have chosen the `MySQL` type.
    host: localhost
    port: 3306
    database_name: itemmail
    table_prefix: itemmail_
    username: root
    password: ''
  1. Reload ItemMail with /itemmail reload.
  2. ItemMail will now be using your MySQL database with your existing data!

Migrating from MySQL to FlatFile

  1. Start your server.
  2. Change your database type in the config.yml to FlatFile. You can safely ignore the database credentials:
  database:
    # Choose how to store the data. Valid types are `FlatFile` and `MySQL`.
    type: FlatFile
  1. Reload ItemMail with /itemmail reload.
  2. ItemMail will now be using FlatFile with your existing data!

Can I use MariaDB with the MySQL database type?

Yes! It is set up the same way as the MySQL database.