# How to Create and Manage MySQL Databases on XGamingServer (/docs/panel-guides/databases)





import { Step, Steps } from 'fumadocs-ui/components/steps';

Some games and plugins need a MySQL database (e.g., FiveM with ESX/QBCore, Minecraft with LuckPerms). You can create and manage databases directly from the panel.

Create a Database [#create-a-database]

<Steps>
  <Step>
    Open the Databases tab [#open-the-databases-tab]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Databases** in the sidebar.

        <img alt="Databases page" src={__img0} placeholder="blur" />
  </Step>

  <Step>
    Click New Database [#click-new-database]

    Click the **New Database** button. Enter a name and set "Connections From" (leave as `%` to allow connections from anywhere).
  </Step>

  <Step>
    View connection details [#view-connection-details]

    Click the database in the list to see its credentials:

    | Field                 | Description                            |
    | --------------------- | -------------------------------------- |
    | **Endpoint**          | Host and port (e.g., `127.0.0.1:3306`) |
    | **Username**          | Database username                      |
    | **Password**          | Click to copy                          |
    | **Connection String** | JDBC format — ready to paste           |
  </Step>
</Steps>

Import and Export SQL [#import-and-export-sql]

The Databases page includes two buttons for SQL management:

| Button                       | What it does                                                                |
| ---------------------------- | --------------------------------------------------------------------------- |
| **Export Database to SQL**   | Downloads the database as a `.sql` file                                     |
| **Import SQL into Database** | Uploads and executes a `.sql` file (for framework installs like ESX/QBCore) |

Rotate a Password [#rotate-a-password]

Click **Rotate Password** in the database details modal. A new random password is generated immediately.

> **Warning:** Rotating the password invalidates the old one. Update your server configs (e.g., `server.cfg`, plugin configs) with the new password.

Delete a Database [#delete-a-database]

Click the **Delete** button (trash icon). Type the database name to confirm. **This permanently deletes all data.**

Related Guides [#related-guides]

* [FiveM Database Setup](/docs/fivem/database-setup) — oxmysql connection string
* [Files](/docs/panel-guides/file-manager) — edit plugin configs with database credentials
* [Backups](/docs/panel-guides/backups) — back up before database changes
