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
- Select Databases under Management in the menu on the left.
- Select Create.
- Type
acore_authin Database Name. Leave Connections From as%. - Select Submit.
- Select Create again, type
acore_charactersand select Submit. - Select Create once more, type
acore_worldand 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”.
- On the Databases page, find the full names in the Name column. Select the text and copy it.
- Select Server Options in the menu on the left.
- In Database Host, type the address from the Connection column, without the
:3306at the end. - Check that Database Port says
3306. - Paste the full name of acore_auth into Login Database.
- Paste the full name of acore_characters into Characters Database.
- 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
- Go back to Databases in the menu on the left.
- Select the Username of acore_auth. It’s copied to your clipboard.
- Open Server Options and paste it into Login Database User.
- Go back to Databases and select the hidden Password of acore_auth to show it.
- Select the password again to copy it.
- Open Server Options and paste it into Login Database Password.
- 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.
- On Databases, select the Username of acore_characters.
- In Server Options, paste it into Characters Database User.
- On Databases, select the hidden Password of acore_characters once to show it, then again to copy it.
- In Server Options, paste it into Characters Database Password and click outside the field.
- Repeat steps 1 to 4 for acore_world, using World Database User and World Database Password.
Reveal the passwordSelect the hidden Password of acore_characters to show it.If something doesn’t connect later, compare your fields with this:
| Server Options field | Databases page |
|---|---|
| Database Host | Connection, without :3306 |
| Database Port | 3306 |
| Login Database, User, Password | The acore_auth row |
| Characters Database, User, Password | The acore_characters row |
| World Database, User, Password | The acore_world row |
Start the server
- Select Console in the menu on the left.
- Select Start. If the server is already running, select Restart so it reads the new settings.
- Watch the console. The server applies its database files one by one (“Applying update …”), then prints a summary like
>> Applied 618 queriesand 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.
- Create the three databases and fill in Server Options as above.
- Select Stop in the panel and wait until the server is offline.
- 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- Import each file into the matching database on your server. Replace
DB_HOSTwith the address from Connection (without:3306),DB_USERwith that database’s own Username, andDB_NAMEwith 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- 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 is3306. - “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.
