This guide shows you how to move a MySQL database from another host to Imperial Hosting. You export the database from your old host to a .sql file, create a new database on Imperial Hosting, and import the file into it.
These steps work the same for any game, such as a FiveM server's database or a Minecraft plugin's database.
You will need:
Export your old database to a .sql file on your computer. Choose the method that matches the tool your old host provides.
Large databases can take a while to export. Wait for the export to finish before continuing.

.sql file.
.sql file you exported.
Make sure your new database is selected before running the file. Otherwise, the import may fail or create tables in the wrong place.
Your server still has your old host's database details. Update them to your new database's details wherever your server uses them, then restart your server.
| Game | Where to update |
|---|---|
| FiveM | The mysql_connection_string line in server.cfg. See Connecting a Resource to a Database. |
| Minecraft | Each plugin's configuration file, usually in its folder inside plugins. |
| Problem | What to check |
|---|---|
Access denied for user |
The username or password is wrong. Copy them again from your database's connection details. |
Unknown database |
Your new database was not selected before running the file. Select it and run the file again. |
Table already exists |
The database already has tables, for example from a previous import. Delete them or create a fresh database, then import again. |
| Your server cannot connect after importing | Your server is still using your old database details. See Update Your Server's Database Details. |
Create databases and find their connection details.
Move a FiveM server, including its database, to Imperial Hosting.
Move a Minecraft server to Imperial Hosting.
If you run into any issues or need support, our team is here to help.
Join our Discord.
Open a support ticket through our Help Desk.