World of Warcraft

How to Set Up the MySQL Database on Your World of Warcraft (AzerothCore) Server

Create the three AzerothCore databases for your WoW server, connect them in Server Options, and import an existing realm from a local server.

Your realm keeps everything in three MySQL databases: accounts and the realm list in acore_auth, characters, guilds and mail in acore_characters, and creatures, quests and items in acore_world. The server won’t start until it can reach all three. You create them in the Physgun Gamepanel and enter their details in your server options, and on its first start the server fills them for you.

Before you start, upload the dbc and maps folders from a 3.3.5a (build 12340) client into the server’s data folder. Without them, the server stops with “The client data is missing” before it touches the databases. You’ll also need room for three databases. The Databases page shows how many you’re using.

Create the databases

  1. Select Databases under Management in the menu on the left.
  2. Select Create.
  3. Type acore_auth in Database Name. Leave Connections From as %.
  4. Select Submit.
  5. Select Create again, type acore_characters and select Submit.
  6. Select Create once more, type acore_world and select Submit.

All three databases are now in the list, each with its own Username, Password and Connection.

Database address and names

The full name of each database in the Name column starts with server_ and a code for your server, for example server_01m8..._acore_auth. Always use this full name. If you enter just acore_auth, the server gets “Access denied”.

  1. On the Databases page, find the full names in the Name column. Select the text and copy it.
  2. Select Server Options in the menu on the left.
  3. In Database Host, type the address from the Connection column, without the :3306 at the end.
  4. Check that Database Port says 3306.
  5. Paste the full name of acore_auth into Login Database.
  6. Paste the full name of acore_characters into Characters Database.
  7. Paste the full name of acore_world into World Database.

Each field saves when you click outside it, and you’ll see “Startup variable successfully saved.”

Login database user and password

  1. Go back to Databases in the menu on the left.
  2. Select the Username of acore_auth. It’s copied to your clipboard.
  3. Open Server Options and paste it into Login Database User.
  4. Go back to Databases and select the hidden Password of acore_auth to show it.
  5. Select the password again to copy it.
  6. Open Server Options and paste it into Login Database Password.
  7. Click outside the field to save it.

Characters and world logins

Do the same for the other two databases. Each one has its own username and password, so copy them from the right row.

  1. On Databases, select the Username of acore_characters.
  2. In Server Options, paste it into Characters Database User.
  3. On Databases, select the hidden Password of acore_characters once to show it, then again to copy it.
  4. In Server Options, paste it into Characters Database Password and click outside the field.
  5. Repeat steps 1 to 4 for acore_world, using World Database User and World Database Password.
The hidden password of the acore_characters database, with a Click to Reveal hintReveal the passwordSelect the hidden Password of acore_characters to show it.

If something doesn’t connect later, compare your fields with this:

Server Options fieldDatabases page
Database HostConnection, without :3306
Database Port3306
Login Database, User, PasswordThe acore_auth row
Characters Database, User, PasswordThe acore_characters row
World Database, User, PasswordThe acore_world row

Start the server

  1. Select Console in the menu on the left.
  2. Select Start. If the server is already running, select Restart so it reads the new settings.
  3. Watch the console. The server applies its database files one by one (“Applying update …”), then prints a summary like >> Applied 618 queries and the world database version, for example > Version DB world: ACDB 335.17-dev.

The first fill took about two minutes in our tests, and later starts skip it. You shouldn’t see “Access denied” or connection errors for the Login, Characters or World database.

To check the result, connect a MySQL client to the host and port from the Connection column. acore_auth now has the tables account and realmlist, acore_characters has characters, and acore_world has creature_template full of rows. The realm list row takes its name from Realm Name in Server Options.

Import from a local server

If you already run AzerothCore on your own computer, you can bring your accounts and characters over with a MySQL client, using the details from the Databases page. Usually you only need acore_auth and acore_characters. Move acore_world too only if you changed it, because the server fills a stock world by itself.

  1. Create the three databases and fill in Server Options as above.
  2. Select Stop in the panel and wait until the server is offline.
  3. On your computer, export each local database to a file:
mysqldump -u acore -p --single-transaction --no-tablespaces acore_auth > acore_auth.sql
mysqldump -u acore -p --single-transaction --no-tablespaces acore_characters > acore_characters.sql
  1. Import each file into the matching database on your server. Replace DB_HOST with the address from Connection (without :3306), DB_USER with that database’s own Username, and DB_NAME with its full Name. Enter its Password when asked:
mysql -h DB_HOST -P 3306 -u DB_USER -p DB_NAME < acore_auth.sql
mysql -h DB_HOST -P 3306 -u DB_USER -p DB_NAME < acore_characters.sql
  1. Select Start in the panel.

The console should report “Auth database is up-to-date!”, “Character database is up-to-date!” and “World database is up-to-date!” with no update errors. Your players can then log in with their accounts and find their characters.

You don’t need to fix the realm list by hand. On every start, the server sets the realm row to the Realm Name, your server’s address and the World Port from Server Options. Keep your local AzerothCore close to the server’s version, since the server applies any newer database updates on top of your dump.

The manual way

AzerothCore reads its connection from the config files, one line per database, in the format host;port;user;password;database. In worldserver.conf the stock lines are:

LoginDatabaseInfo     = "127.0.0.1;3306;acore;acore;acore_auth"
WorldDatabaseInfo     = "127.0.0.1;3306;acore;acore;acore_world"
CharacterDatabaseInfo = "127.0.0.1;3306;acore;acore;acore_characters"

authserver.conf has its own LoginDatabaseInfo line. Create the three databases and a MySQL user with access to them, then put that user’s details into these lines. On the first start, the server asks to create and fill any missing database. Press Enter to accept.

This is how you’d do it on a server you run yourself. On a Physgun server, the lines in etc/worldserver.conf stay as they are, because the server takes its connection from Server Options at every start. Fill in the fields there instead of editing the file.

After an import on your own server, point the realm list at your address and world port yourself, with a query in acore_auth. Replace SERVER_ADDRESS with your server’s public address:

UPDATE realmlist SET address = 'SERVER_ADDRESS', port = 8085 WHERE id = 1;

If it doesn’t work

  • “Access denied … to database ‘acore_auth’”: a name field holds the short name. Paste the full name from the Name column.
  • “Access denied for user” or “Could not log in”: a user or password belongs to a different database, or was only partly copied. Copy them again from the right row. If you used Reset Password on the Databases page, paste the new password into Server Options.
  • Connection refused or timeouts: check that Database Host has the address from Connection without :3306, and that Database Port is 3306.
  • “The client data is missing”: upload the dbc and maps folders from a 3.3.5a client into the data folder.
  • “No valid realms specified”: the realm row is flagged offline. Run UPDATE realmlist SET flag = 0 WHERE id = 1; in acore_auth with a MySQL client, then start the server again.
  • Update errors after an import: your local AzerothCore is on a different version from the server’s. Update your local copy, export again and repeat the import.
AzerothCore database setupWoW private server MySQLacore_auth acore_characters acore_worldimport AzerothCore databaseworldserver database connection

Was this article helpful?

Ready to get started?

Your server. The best panel. Any game.

Every Physgun server ships with the full panel experience out of the box — no setup, no extras, no waiting. Pick your game and start hosting.

Garry's ModRustMinecraftTeam Fortress 2S&Box
Pick Your Game