Reaper-X » Emulators » Guide » How To » Linux » Software » Tutorials » Video Games » Windows » Configuring Mangos for TBC Server or WoW Classic Server – Setting up Private WoW Server

Configuring Mangos for TBC Server or WoW Classic Server – Setting up Private WoW Server

Update : You can browse this site software category if you’re looking for my mangos release or my custom mangos release … btw i’d suggest you to get my mangos release first because it has been tested with WoW 2.2.3 and will be updated frequently (even easier than anything written on this old post because i already include everything you need to run your own wow private server except for mysql program of course)

Or you can also look at the recent software section located at the footer section of this website to see the new update to my mangos release :)

This is the second part of the Creating your own World of Warcraft Server using Mangos

  1. The First part is all about Installing and Configuring MySQL on your Windows Machine
  2. The Second part is about Configuring the WoW Mangos itself
  3. The Third part is all about Setting up Private WOW Server for Lan Party
  4. The Fourth part is all about Installing and Setting up Apache Webserver with PHP

Okay and before i start i’d like to warn you first especially to those who’s using Dial Up Connection because there are a lot of images used here and the previous mysql installation guide although i’ve optimized it further

Without further ado … here’s the guide ;)

Requirements :

If you’re planning on creating :

The Burning Crusade Server :

Okay i’ve decided to upload my own compiled mangos to make thing easier, for more info see this new post

Btw … the installing mysql part is still the same … so if you need information on how to install mysql refer to the part 1

Note : Since most people who compiled Mangos for Win32 already included DBC and Map Extractor in their release you should use that one first. And unfortunately i can not give direct link to the files so you must try it by yourself and judge which version is the best for you :)

Btw some people prefer (especially to those who’s using high speed internet access – not me of course –) to download the extracted maps and dbc from somewhere rather than extracting it directly so if you are using the same high speed connection you might like to use this option

World of Warcraft Classic Server :

  1. Compiled Mangos Revision 3462 for Win32 / Windows by Maxis
  2. Compatible SDB Full Dump for Mangos 3462 with Changesets 156
  3. Compatible Map and DBC Extractor

That’s it … unfortunately since it is using the old mangos revision you’ll notice more bugs compared to latest / newest version for TBC … and since i dont have TBC Client installed, i can only give you a how to guide to configure your mangos server based on my experience when doing remote assistance to someone who asked for help via MSN

Btw if you’re going to create WoW Classic server you can use my extracted DBC Files

Side Note : Basically since there are no differences on creating WoW TBC Server and WoW Classic Server the only thing you should change is just the filename … don’t worry if you don’t understand what i’m talking about right now, soon you’ll know about it :)

Creating Directory Structure :

Okay i assume you’ve finished downloading all the required stuff and now its the time to configure your mangos. But before that you need to extract the required files first into your harddrive and organize it before starting to configure mangos (although this step optional but i think organized directory structure looks better but that is just my own opinion)

Look at the image below for a good explanation about this :

Wow server directory structure

  1. The daemon directory is where you should extract the mangos program itself
  2. The data directory is where you should put the extracted maps and dbc folder (soon you’ll know about this process)
  3. The SDB is just a temporary directory to be used when importing the SQL Files

Extracting Maps and DBC Files from World of Warcraft Game :

Now this is when the ad.exe and dbc extractor came. But first we are going to use the ad.exe. And here’s the step

  1. Copy the ad.exe into your WoW Game directory (usually C:\Program Files\World of Warcraft)
  2. Create folder called maps
  3. Run the ad.exe and wait until its finished
  4. Move the maps folder into C:\WoW\data (if you’re using the same directory structure like me)

Extracting maps

After you’ve finished extracting maps now it is the time you use DBC Extractor … and here’s the step to use it

  1. Extract the MPQE.exe (and it’s dll if available) into your WoW Game Data directory (C:\Program Files\World of Warcraft\Data)
  2. Create shortcut to the MPQE, right click on it and choose properties and adjust it’s target into “C:\Program Files\World of Warcraft\Data\MPQE.exe” /p dbc.MPQ DBFilesClient\*.dbc
  3. Run the shortcut and wait until it finished
  4. Rename the DBFilesClient folder into DBC
  5. Move the DBC folder into C:\WoW\data (if you’re using the same directory structure like me)

If you want a more detailed explanation look at the screenshot below

Creating Shortcut

and then the shortcut properties

Properties of Shortcut to DBC Extractor

Importing the SDB Files :

Okay we have finished extracting the maps and dbc files required for mangos, now we need to import the database first before you can run mangos program

and here’s the summary on how it done :

If you’re going to create WoW Classic Server

  1. Extract the SQL files from my mangos sql dump into C:\WoW\SDB (if you follow my directory structure)
  2. Open Command Prompt
  3. Run the sql query from the command prompt (look image below for an example on how to use the query)

Command to use to import the mangos sql files

and here’s what it’ll looks like when it’s finished

SQL Import Process Finished

Note : Because some people prefer to see the importing process (some say it’s like Matrix .. lol), i decided to use -v (verbose) switch but if you prefer not to see it you can safely remove the -v switch

If you’re going to create TBC Server

Here’s the summary on how it’s done :

  1. Extract the SDB Full Dump for Mangos Revision 3900 into C:\WoW\SDB
  2. Extract the Mangos Program / Archive into C:\WoW\Daemon\Mangos
  3. Go into C:\WoW\Daemon\Mangos\SQL
  4. Copy the create_mysql.sql and realmd.sql into C:\WoW\SDB
  5. Open the Command Prompt
  6. Execute the same query as above but adjust the filename first

An example on how to execute the query is like below (you must do this in order) and using the same path as the above image

  1. mysql -u root -p -v < create_mysql.sql
  2. mysql -u root -p -v -D realmd < realmd.sql
  3. mysql -u root -p -v -D mangos < the_filename_used_on_sql_dump_from_e_turray.sql

And that’s it you’re finished importing the database required :)

Editing Mangos Configuration :

You’ve finished extracting maps, dbc and already imported the database required but now what else ? of course you need to edit the mangosd.conf file itself

Now here’s the summary on how it is done :

  1. Go into C:\WoW\Daemon\Mangos
  2. Open the mangosd.conf using wordpad (you can not edit it using notepad, because it is using Unix Line Break)
  3. Change the datadir into C:\WoW\data
  4. Save it

Now here’s some screenshot of the mangos configuration file editing process :

Editing mangosd.conf

Inside mangosd.conf

Make sure everything is working as it should :

Now you’ve done almost everyting required to make your own wow private server … now before started playing it you need to make sure that everything is okay before starting to connect to your own server

Here’s how it is done :

  1. Run the realmd.exe (C:\WoW\daemon\mangos\realmd.exe)
  2. Run the mangosd.exe (C:\WoW\daemon\mangos\mangosd.exe)
  3. See if one of the above process close itself automatically or not. If one of the process close itself automatically after launched that means there’s something wrong with your configuration try restarting the configuring process from the beginning

And now here’s the screenshot if your mangosd and realmd process is working as it should :

Realmd process launched

Mangosd process launched

The last step for configuring mangos and wow, editing the Realmlist used by WoW to connect :

After everything is okay, now there’s one more thing left for you to do … which is editing the realmlist.wtf file inside your WoW Game directory (C:\Program Files\World of Warcraft\realmlist.wtf) using your favorite text editor. You can use notepad or wordpad to do this

The default realmlist.wtf file should be like this :

set realmlist us.logon.worldofwarcraft.com

and then change it into

set realmlist 127.0.0.1

Creating Test Account for yourself :

Okay now you’ve created and set up everything but there’s still one more thing left and that is creating a test account with normal player status for yourself. And this process is really simple actually all you have to do is just typing this on the mangosd window (above image)

create desired_username desired_password

Okay that’s it you just created a test account that can be used to connect to your own wow server. If you get error message and / or stuck at realm loop i’m sure there’s something wrong with your configuration or you’re not using compatible mangos / wow client

That’s all for this part … stay tune for the next part ;)

As a side note, this is the first time i’m using lots of images on my guides and i’m looking forward to your opinion about this (tell me if you like it this way or would you prefer text with few screenshot or images) :)


Update :

To those who’s still having problem with Mangos like finding the correct mangos version,etc. I’ve decided to upload my own compiled Mangos Revision 4431 with Scriptdev2 241, and also included DBC Extractor (Thanks to XLayer for his DBC Extractor) and VMaps Extractor. And also mirrored the SDB 0.7.3 with Changesets 208 from http://opensvn.csie.org/NewSDB

And here’s the file :

  • Mangos 4431 with ScriptDev2 124
  • SDB 0.7.3 with Changesets 208

Another Update : See my new post about new Mangos 4488 Update with Silvermoon Database … and tested with WoW 2.1.3 Client … just look at the screenshot below

All you have to do (i assume you’ve completed all of the steps involving mysql installation, and also already extract the DBC and VMaps files) is just :

1. Import / Overwrite the database with this new SDB (if you want the easiest way to start all over again from the Importing SDB step, you can execute the create-database.sql inside my Mangos 4431 archive (in reaper-sql directory) using this command :

mysql -u root -p < create-database.sql

mysql -u root -p -D mangos < SDB_0.7.3_Changeset_208_Rev1.sql

mysql -u root -p -D mangos < reaper4431.sql

Note : Make sure you’re in the same directory as the create-database.sql and the SDB_0.7.3.sql when executing that command

2. And then the next step is, importing the sql files inside the scriptdev2-sql directory (2 files) like below example (must be in order) :

mysql -u root -p -D mangos < scriptdev_full.sql

mysql -u root -p -D mangos < scriptdev_additional_req.sql

And you’re done :)

Perhaps the above might sound confusing for some people, so if you need help just leave comment here

Here’s a screenshot taken using Mangos 4488 Scriptdev2 134

Damn i'm looks great

Another Screenshot

Tags: ApachedatabasegameGuidemangosmsnmysqlprivate serverserversilvermoonSoftwarewebserverWindowsworld of warcraftwow

Leave a Comment

Comments Navigation 1 2 3 ... 14
  1. Elliot said Jul 5, 2007 at 11:49 pm

    Ok, I take it back, I had a look on forums, and I think I’ll stay with mangos, I just need it to work :P

  2. Elliot said Jul 5, 2007 at 11:20 pm

    I might just try Antrix, it looks a lot easier…
    Still, Reaper-X try to talk to me on msn at some point. I still want to talk to ya! :)

  3. Dank said Jul 5, 2007 at 10:32 pm

    When i run the MPQE shortcut, I don’t notice anything happen. Where does the DBFilesClient folder come from? Is this supposed to be extracted by running the MPQE.exe? I can’t seem to locate this folder, unless im missing something.

    Any help would be nice, thanks :)

    • Fallen said Oct 3, 2009 at 4:10 pm

      try coping the directory to your root and run it in command promt.

  4. Elliot said Jul 5, 2007 at 10:20 pm

    Crap. Error 1045, (look further up the comments)
    then after that I get Error 1049
    Unknown database

  5. Elliot said Jul 5, 2007 at 10:04 pm

    Aha! I was typing /r instead of /d in the command propt for some reason. silly me. :P

  6. Elliot said Jul 5, 2007 at 9:46 pm

    The mangos folder might be corrupt, or it might be a bug with mangos, or its your computer acting up when you run WoW. thats what I think.

  7. Zak said Jul 5, 2007 at 8:32 pm

    YOu have quite a big conversation here :P and do you know something about my problem ?

  8. Elliot said Jul 5, 2007 at 7:45 pm

    crap. now I’m getting this:
    The filename, directory name, or volume label syntax is incorrect.

    I did a few tests, and it goes all the way down to C:\ with this message. HOW CAN C:\ NOT BE THERE? stupid computer.

  9. Elliot said Jul 5, 2007 at 7:33 pm

    Right, time to delete mysql from program files and the registry. wish me luck.

  10. Elliot said Jul 5, 2007 at 7:19 pm

    awww, someone help. I’ve already made my own custom set of uber armor and I want to use it… what timezone are you in Reaper-X? (I’m GMT) I want to speak to you on msn…

  11. Elliot said Jul 5, 2007 at 7:16 pm

    I just noticed a file called mysqlaccess.conf inside my mysql install, will that help with anything?

  12. Thyzz said Jul 5, 2007 at 7:15 pm

    Ok, just looked on the Internet. It seems that all of the .MPQ files are compressed by TBC to two big MPQ’s: expansion.MPQ and common.MPQ. Any idea what to do with those things?

  13. Elliot said Jul 5, 2007 at 7:14 pm

    How do I reinstall mysql? I need to start over, and the bloody thing won’t leave me alone. (ERROR 1045)

  14. Thyzz said Jul 5, 2007 at 7:06 pm

  15. Thyzz said Jul 5, 2007 at 7:04 pm

    ‘Cause there is no dbc.MPQ inside my Data dir…

  16. Thyzz said Jul 5, 2007 at 7:02 pm

    Wait! If you want to create a TBC server, shouldn’t you use expansion.MPQ instead of dbc.MPQ?

  17. Elliot said Jul 5, 2007 at 6:57 pm

    I just downloaded the actual sdb.sql instead of using MPQE.exe, can’t remember where though…

  18. Thyzz said Jul 5, 2007 at 6:49 pm

    Damnit, MPQE.exe keeps saying dbc.MPQ not found! Weird…

  19. Elliot said Jul 5, 2007 at 6:14 pm

    Is it possible to wipe the entire thing and start over? I think I know whats causing my problem…

  20. Zak said Jul 5, 2007 at 2:31 pm

    I made the whole istallation and made an account,but when I try to log in it gets to “Handshaking” ..and that’s all,it freezes there. HOW can I fix this problem?

  21. Elliot said Jul 5, 2007 at 1:44 pm

    I can’t get it to work… I am using the correct password. Any chance you could talk to me on msn? (cruelblue@gmail.com)

  22. Cara said Jul 5, 2007 at 10:41 am

    For the record, the images are EXTREMELY helpful.

    OK I’ve setup my server, and I can use it and everything is wonderful… now I’m trying to get my boyfriend to connect to my server (over the internet not LAN )

    I setup a dyndns , and used the address in the realmlist.wtf for him, set my PC as the DMZ, and created an account for him, he is able to connect and log in , but when it gets to the character selection screen ( I logged in and made a character for him ) it just takes him back to the realm selection screen , and keeps doing that, … any ideas?

  23. Reaper-X said Jul 5, 2007 at 10:08 am

    # Elliot

    i believe that error message was caused because you’re using incorrect root password so the only solution is you must use the correct root password

    and about the .exe file. Which version you’re using ? and where did you get it ?

    # Ryan

    I just double checked every link and i cant find the broken link you’ve mentioned ? perhaps its just temporary downtime

    # David

    From your comments, i can see that you’re trying to run the ad.exe in / under the maps folder, try moving the ad.exe from the maps folder into the root directory of your world of warcraft installation

    for example

    D:\program files\world of warcraft\ad.exe

    but don’t forget that you must already created the

    D:\program files\world of warcraft\maps

    directory ;)

  24. Elliot said Jul 5, 2007 at 8:07 am

    Doesn’t work. I’m getting errors when I try to make the SDB.

    2007-07-05 02:02:57 World Database: 127.0.0.1;3306;root;[password];mangos
    2007-07-05 02:02:57 ERROR:Could not connect to MySQL database at 127.0.0.1: Access denied for user ‘root’@'localhost’ (using password: YES)

    2007-07-05 02:02:57 ERROR:Cannot connect to world database 127.0.0.1;3306;root;[password];mangos

    2007-07-05 02:02:53 Verbinde zur Datenbank: 127.0.0.1;3306;root;[password];realmd
    2007-07-05 02:02:53 ERROR:Could not connect to MySQL database at 127.0.0.1: Access denied for user ‘root’@'localhost’ (using password: YES)

    2007-07-05 02:02:53 ERROR:Cannot connect to database

  25. Elliot said Jul 5, 2007 at 7:26 am

    I downloaded it off another link, have to re-set it up now, got the .exe files now…

  26. Elliot said Jul 5, 2007 at 5:32 am

    I don’t seem to have either .exe file, someone help… got the file from https://svn.mangosproject.org/trac/MaNGOS/wiki/MaNGOSDownload

  27. David said Jul 4, 2007 at 11:11 pm

    When im running ad.exe this error comes up:

    Debug Error!

    Program: D:\Spel\World of Warcraft\Maps\ad.exe

    This application has requested the runtime to terminate in an unusual way. Please contact the applcation’s support team for more information.

    (Press Retry to debug the application)

    If i press retry whole thing just shuts down
    Waiting for answer :) Thanks in advance

  28. Richard said Jul 4, 2007 at 8:41 am

    I got so close,then i realized the compiled mangos revision 3900 link no longer works! can i get a new link please? so far this has been awesome,if i can get my own server up,it will be dedicated to you.

  29. ryan said Jul 4, 2007 at 7:04 am

    the mangos link is broken. would you mind stickin another one up there so i can grab that mangos program?

    thanks a bunch! :)

  30. zat said Jul 4, 2007 at 3:04 am

    I got the same problem as Ajx
    When i run MPQE.exe shortcut
    it pops up less then a second then its gone
    i cant find any of the DBFilesClient folder.
    Im pretty sure its just a small thing im doing wrong, but i cant seem to find it :(

    and thanks for tutorial :)

  31. Mikeh said Jul 4, 2007 at 1:11 am

    #ReaperX: Thanks!

    #Cara: I think between the NULLs and CURRENT_TIMESTAMP, that’s supposed to be two single quotes, not a double quote. But I agree, it’s easier to do it from the mangos console.

  32. Ajx said Jul 3, 2007 at 11:13 pm

    When I use the shourtcut MPQE a cmd window only shows for less then a second and I cant seem to find the DBFilesClient

  33. DBFilesClient ? said Jul 3, 2007 at 10:24 pm

    I cant seem to find this

  34. Cara said Jul 3, 2007 at 7:27 pm

    I’m using MySQL server v.5.0.41, and I still can’t get that to work, but I found another way,

    from the mangos command line screen, you can type

    setgm accountname 3

    seems simpler to me and it worked like a charm….

  35. Reaper-X said Jul 3, 2007 at 6:33 pm

    # Poss

    Could you tell me which database version you’re using ? also did you get that error message when importing the Mangos SDB file or something else

    # Mikeh

    You can change it from the dabatase using this command :

    1. mysql -u root -p
    2. use realmd
    3. update `realmlist` set `name` = 'My Server' where `id` = 1;
    4. quit

    # Cara

    I’ve tried reproducing that error message by running the same query and i found nothing because it works just fine

    could you tell me which mysql version you’re using ?

    or you can also try reimporting the realmd sql (drop the previous table first but please note, you’re going to lose the previous data)

  36. Cara said Jul 3, 2007 at 12:37 pm

    Hiyah! great guide I’ve got my server working wonderfully, except when I try to make a GM account I get an error,… this is what I enter at the command prompt ( it is a TBC server, and is working, except for this GM thing )

    C:\>mysql -u root -p
    Enter password: **********

    mysql> USE ‘realmd’;
    Database changed

    mysql> INSERT INTO `account` VALUES (NULL, ‘*My username*’, ‘*My Password*’, ‘3′, NULL, NULL, NULL, ”, CURRENT_TIMESTAMP, ‘0′, ‘127.0.0.1′, ‘0′, ‘0′, ‘0000-00-00 00:00:00
    ‘, ‘0′,’1′);

    ERROR 1265 (01000): Data truncated for column ‘failed_logins’ at row 1
    mysql>

    Thanks in advanced! ^_^

  37. Mikeh said Jul 3, 2007 at 3:59 am

    New question: Which file do I need to edit to change the realm name from ReaperX? I can’t find it in realmd.conf or mangosd.conf and I don’t know where else to look.

  38. Poss said Jul 3, 2007 at 3:09 am

    SQL ERROR: Unknown colum ‘I’ in ‘field list’

    Got through all the errors, finally got it to work, and when I goto create it gives me this error -roll eyes-

  39. Mikeh said Jul 2, 2007 at 10:20 pm

    Works now. I may have been being an idiot and using the wrong button before (pretty sure I tried it, though).

  40. Mikeh said Jul 2, 2007 at 9:42 pm

    Closer inspection shows that combat works, but looting corpses doesn’t.

  41. Mikeh said Jul 2, 2007 at 8:01 pm

    Everything seems to work, except when I try to talk to an NPC, it plays the sound of them talking but doesn’t give me a window.

  42. Davo said Jul 2, 2007 at 4:30 pm

    edit: they can login and see the realm but cant join it

  43. Davo said Jul 2, 2007 at 4:23 pm

    hey i got it to work. but evey time someone trys to join my realm it wont let them join

    any ideas why

  44. Smithy said Jul 2, 2007 at 3:57 pm

    Same problem as Ax above, it came up saying “Could no locate MPQ archive dbc.MPQ”

  45. Reaper-X said Jul 2, 2007 at 8:24 am

    im really sorry i uploaded the wrong image (but now i’ve fixed it) :(

    to fix it just use -u root at the last part

  46. nintendoclass101 said Jul 1, 2007 at 1:30 pm

    at the :If you’re going to create WoW Classic Server

    1. Extract the SQL files from my mangos sql dump into C:\WoW\SDB (if you follow my directory structure)
    2. Open Command Prompt
    3. Run the sql query from the command prompt (look image below for an example on how to use the query)
    I just press enter when it says “Enter password:”
    but the second time the “Enter password:” i hit enter again then i get the “ERROR 1045 (28000): Access denied for user ‘-p’@'localhost’ (using password: NO)
    then it just sends me back to “C:\WoW\SDB>”
    plz help !!!

  47. Ax said Jun 30, 2007 at 6:13 pm

    Well i have to say, it’s a really nice guide. keep and the good work, and the screens help alot, so keep em to :). I’ve made a fuctional classic WoW server with your other guide.

    But now, the MPQE part doesn’t work, i put the MPQE.exe in the Data folder of WoW (along with the .dll) and make a shortcut and so on, but when i run the shortcut it just says “dbc.mpq not found”.
    Hope you can help here.

    • marc said Aug 21, 2007 at 6:46 am

      i cant get the mpqe part to work either..i dont have a file called dbc.mpq anywhere on my system…help!

  48. Reaper-X said Jun 30, 2007 at 9:51 am

    # Woodrick

    thank you very much for your kind comments :)

    # Player

    Well first of all i need to know which mangos revision you’re running (and did you get it from torrent or mangos website), and database also what WOW version you’re running ? is it the 2.0.12 (TBC) or 1.12.1 (Classic)

    • Mangopie said Aug 1, 2007 at 5:06 am

      Hello im haveing a problum geting up my server, i have it all working but i can talk,use gms commands or anything.Im thinking its because i dont have my patch lsit on 2.0.12 (Yes its a tbc server)Is this my problum and if it is how do i set it to 2.0.12.If you can help me my email is babymoocow@yahoo.com plz help me :)

  49. Player said Jun 29, 2007 at 3:55 pm

    hei, i got a problem. Can you help me?

    I have set up my mangos and everything seems to be working. Mangosd.exe and realmd.exe load without errors, but when i open my WoW and try to connect to it any account (the ones that i created or given ones) it goes through everything till “connected” waits there 30 secs and gives me “disconnected” … mangosd and realmd don’t show me any mistakes so i don’t know what to do. Help me if you can.
    Thanks in advance.

  50. Woodrick said Jun 28, 2007 at 6:17 pm

    Nice guide mate. Good work

    • Mangopie said Aug 1, 2007 at 5:11 am

      Hi i have a tbc wow server and i got it all set up and work but when im in game i cant talk or use gm commands is this because i have my patch list set higher than 2.0.12 plz help me if you can help my email is babymoocow9@yahoo.com

    • wowobsesseddude said Sep 3, 2007 at 7:29 am

      Hi, when i set it up i get to WoW and everytime i click the server MaNGOS it just returns to the Realm page

  51. Jin said Aug 18, 2007 at 12:19 pm

    I’m not sure if someone has already with this problem or if you have found out on your on… but for you and anyone else that is having the same problem…..when you create your account you are creating a normal user account. To set a GM level to an account, type “setgm [user name] [level of GM 1-3]“… it should look something like

    mangos>setgm mangopie 3

    Mangopie being the user name, and 3 being the level of GM, on the mangos server their are 3 levels of GM 3 being the one with the most access and 1 being the lowest. I’m not sure what each level of GM has access to, but 3 is admin and will allow you to do anything you want, given it is available in the mangos commands.

    Note: When logged into a GM account type “.commands” into the chat bar for a list of available commands.

  52. Dave said Aug 23, 2007 at 3:13 pm

    Yes i have that problem as well and it is really annoying -.-

Comments Navigation 1 2 3 ... 14

Trackbacks/Pingbacks

CommentLeave a response

Please read our comment policy | XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>