> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create a MySQL Database for Minecraft Plugins

> Switch from flat-file storage to MySQL for your Minecraft plugins. Improve performance and enable cross-server data synchronization for proxy networks.

## Professional Data Management

As your community expands, using standard `.yml` or `.h2` files for storing massive datasets - such as CoreProtect block logs or complex LuckPerms hierarchies - can lead to significant server-side lag and an increased risk of data corruption. **MySQL** provides a strong, high-performance relational database environment that enables lightning-fast lookups and facilitates data synchronization across multiple server instances. This guide walk you through the initialization and connection of your dedicated database on the FREAKHOSTING platform.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Intermediate
  </Card>

  <Card title="Time" icon="clock">
    6 Minutes
  </Card>
</CardGroup>

***

## Step 1: Initialize Your Infrastructure

Every FREAKHOSTING Minecraft plan includes a dedicated MySQL environment. Follow these steps to generate your unique credentials.

<Steps>
  <Step title="Access Database Management">
    Log in to the [Game Panel](https://games.freakhosting.com) and navigate to the **Databases** tab in the sidebar.
  </Step>

  <Step title="Generate New Registry">
    Click the **New Database** button. Provide a descriptive name (e.g., `minecraft_data`) and set the "Connection From" field to `%` to allow internal node synchronization.
  </Step>

  <Step title="Retrieve Authorization Details">
    Once created, click the **Eye icon** or the database entry to reveal your **Endpoint (Host)**, **Username**, **Password**, and **Database Name**. Copy these details precisely.
  </Step>
</Steps>

***

## Step 2: Synchronizing Your Plugins

Most modern Minecraft plugins feature a `storage` or `database` section within their primary `config.yml`. To enable the integration, you must update the storage type and input your credentials.

| Plugin          | Configuration Method                                                   |
| :-------------- | :--------------------------------------------------------------------- |
| **LuckPerms**   | Update `storage-method: mysql` and input credentials in `config.yml`.  |
| **CoreProtect** | Set `use-mysql: true` and define connection parameters.                |
| **LiteBans**    | Update `driver: mysql` and ensure the `address` matches your Endpoint. |

***

## Strategic Database Optimization

<AccordionGroup>
  <Accordion title="Implementing Table Prefixes">
    If you intend to use a single database for multiple different plugins, you **must** define a unique **Table Prefix** for each one (e.g., `lp_` for LuckPerms and `co_` for CoreProtect). This prevents naming collisions and ensures that one plugin does not accidentally overwrite or corrupt the data of another.
  </Accordion>

  <Accordion title="Cross-Server Synchronization">
    MySQL is the fundamental requirement for "Network-wide" features. By pointing multiple servers (e.g., Survival and Creative) to the same database and prefix, you can synchronize player ranks, bans, and balances across your entire network instantly.
  </Accordion>
</AccordionGroup>

<Warning>
  ### Credential Security

  Your database credentials provide absolute control over your server's persistent data. Never share your password or endpoint in public support tickets or community forums. If you suspect your database has been compromised, use the **Reset Password** feature within the Databases tab immediately.
</Warning>

***

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **Database:** Optimized and reliable.
</div>
