Reaper-X » Emulators » How To » Tutorials » Creating 2 Realmd in WoW Mangos Private Server

Creating 2 Realmd in WoW Mangos Private Server

Some people have requested a guide on how to create or link their WoW Private server realmd so their users can choose whatever realmd they want to login to (for example, the first realmd is the PVP World, while the second realmd is to those who prefer normal world) :) … and that’s why i decided to create this guide, and hopefully it’ll be not confusing (i tried my best to make it easy to understand but you judge it by yourself) :)

So here goes the guide :

Requirements :

1. Basic knowledge about MySQL and know how to use MySQL Client program such as Navicat, SQLYog, or PHPMyadmin :)

2. Have lots of free memory / RAM left for best result (i’m using 3GB DDR2 Dual Channel RAM)

3. Mangos already worked and you can use it before trying to attempt this ;)

Note : Depending on which mangos revision you’re using the realmd column might be different (if you’re using my 4602 version then you can just use the same sql query as shown in this example)

also as a side note, you just need to have 1 account to login to each realmd, but it’ll use different data inside each database used

Here are the steps :

1. First make a copy of your mangos (or your mangos directory), so in the end you’ll get two mangos directory, in this example i was using my own compiled version 4617 (my latest version which is available for download for everyone is 4602)

Mangos directory

2. Now you’ll need to create a new realmd id as shown on below image, and you can use below sql query if you’re using my 4602 release but if you’re using lower version, there are two option for you to choose : 1. Upgrade or 2. Adjust the column name accordingly

Mangos new realmd

The above query will automatically assign REALMD ID 2 as it’s ID Number if you didn’t touch anything before in realmd table, and another thing to note is use different value for the WORLD Server PORT (in this example i’m using 8086

3. After finished with the above process, now of course you’ll need to create new Mangos Database first for your second realmd, and to do this we need to create a new database and then import the Mangos-UDB.sql file (if you’re using my 4602 release) or adjust it as necessary if you’re using another release, see below image for the example :

3.1 Creating New Mangos Database

Create new mangos db

or type mysqladmin -u root -p create database-name … if you can’t see the command used on above image

3.2 Importing Mangos DB

Import mangos db

After finished creating new database for your second database, now you’ll need to import the fully working database from before into your newly created mangos database (if you’re using my 4602 release, the database name was called mangos-udb.sql and can be found in reaper-eazy-mangos folder)

4. Now you just need to go inside your second mangos directory which is created at step #1 and then open mangosd.conf inside that directory and search for this line :

RealmID = 1

and replace it with :

RealmID = 2

and then search for :

GameType = 1

replace it with :

GameType = 0

and now search for :

WorldDatabaseInfo = “127.0.0.1;3306;mangos;mangos;mangos”

and replace it with :

WorldDatabaseInfo = “127.0.0.1;3306;root;yourpassword;yoursecondmangosdatabasename”

lastly search for :

WorldServerPort = 8085

and replace it with :

WorldServerPort = 8086

The above step was done because the previous mangos user doesn’t have the privilege to touch that new database name so we need to use root that has global privilege (this is the most quickest and dirtiest way) :P

As a side note, it’d be better for you to create new username for your second database and grant privilege to it for better security (it’s not good to use root account) :)

5. Run the realmd.exe from any of your mangos directory (the first directory which was there before, or the new mangos directory which is created for this purpose), and then run mangosd.exe from the first directory and the second directory

So that result in three new process created … 1 realmd.exe, and 2 mangosd.exe from different directory

6. Now login with your previous username or create a new username and if you’ve done all of the above steps correctly you’ll see two realmd that you can use as shown on below image :

6.1 Realmd Selection Screen

Realmd selection screen

6.2 The first Database With all the characters from before (i think you already saw my character for each screenshot used lol)

First wow realmd

6.3 The Second Realmd which is used for this guide

Second wow realmd

That’s it … i hope you can understand the above explanation … and just like before, if i missed anything just let me know about it :)

Tags: databasegameGuidemangosmysqlPHPprivate serverserverudbwow

Leave a Comment

Comments Navigation 1 2
  1. weiss935 said Jan 26, 2008 at 8:50 pm

    when i open the second mangosd it just stood could not connect to mysql database at Ô127.0.0.1: unknown mysql server host ‘Ô127.0.0.1′

    Cannot connect to world database Ô127.0.0.1

  2. Steve said Jan 26, 2008 at 10:24 am

    im having this same problem you create a character in one realm and when u switch realms the character is on the second realm can this be resovled?

  3. Jeremy said Jan 24, 2008 at 6:38 am

    -d unknown command.

    Any reason?

    *******************************
    C:\Documents and Settings\Jeremy>mysql -umangos -pmangos -d realmd
    mysql: unknown option ‘-d’
    ********************************

  4. bloody said Jan 22, 2008 at 10:38 pm

    like:
    setgm bloody 3
    for admin =D

  5. bloody said Jan 22, 2008 at 10:37 pm

    acount ranks can be changed on 2 ways,
    easy in mangosd.exe or some harder in sqlyog

    -open mangosd.exe and type setgm ‘name’ ‘rank’
    3 = admin
    2 = gm
    1 = moderator
    0 = player

    or the harder way:
    -open sql yog, go to the realmd db,
    then to account and search for the player and set his rank (collum nr. 4)

  6. n1t3 said Jan 20, 2008 at 3:07 am

    having problems with characters in the two realms. the characters from realm 1 are being used in realm 2 is there a way to fix that? or am i missing a step on here…

  7. Aaron said Dec 29, 2007 at 8:58 am

    my server is working fine i just forgot how to change my accounts ranks

  8. Fan of Reaper said Dec 29, 2007 at 8:47 am

    How do you change your gm accounts ranking?

  9. Fan of Reaper said Dec 29, 2007 at 8:45 am

    hey i was just wondering how do you change your gm character’s rank

  10. ryan said Dec 26, 2007 at 3:45 pm

    well i did everything it said, but then for some reason when i try to log into the second server it says “cannot connect”
    im lost

  11. Laxen said Dec 25, 2007 at 9:56 am

    For all of you still looking for working DBC files /having problems with extracting your own can do what I did. I downloaded the latest ASCENT server and used the DBC files for the reaper-x-mangos server. worked perfectly.

    Thanks reaper and a merry christmas!

  12. bassman said Dec 19, 2007 at 3:43 am

    hey reaper i am having trouble with getting my world friends on my server my server is up and running but my netherlands friends can’t get on it what am i doing wrong please help me thank you

  13. Oskii said Nov 29, 2007 at 9:30 pm

    hello reaper, first of all i want to ty for all the guides u have posted. and second if possible i need some help with the account site for others to create their own accounts instead of me doing manually. email= s457l9a1321@hotmail.com

  14. Crono said Nov 24, 2007 at 10:58 am

    How can i make 2 mangosd.exe to run in one Mangos Restarter? I made 2 realms…but i need to make the restarter to work for both…what shoul i do?

  15. Omfgimanoob said Nov 23, 2007 at 6:26 pm

    sorry..lol i meant server not website :P

  16. Omfgimanoob said Nov 23, 2007 at 6:26 pm

    yo..reaper, i have stared a web site using shadowhunters repack (mangos) my problem is that when i use the speed commands i get stuck i cant move at all.. u know what this is or how i can fix it? =:)

  17. SauronTheGreat said Nov 16, 2007 at 9:46 pm

    Ok, now I found anything, it says error, that mysql server isnt correct :/

  18. SauronTheGreat said Nov 16, 2007 at 3:42 am

    Also: Realm shows to be offline -.- and this WorldDatabaseInfo = “127.0.0.1;3306;mangos;mangos;mangos” cannot be found, even if you uses WORLD as key word -_- …

  19. SauronTheGreat said Nov 15, 2007 at 8:55 pm

    :S Ok, thanks great guide, but :S how can I remove realm ? Coz I have one incorrect ;S out of three ;S thx again ;S

  20. EZ-Mouse said Nov 15, 2007 at 8:00 pm

    A really short (and proudly hard to understand guide) about to connect internet realms to your logon server

    first stem, in the logon server db, create a list whit all Id Names and IP (and ports if necesary) of your internet realms, i.e:

    (shown as vertical fields)
    ——————————————–
    id: 1
    name: internet server 1
    address:
    port:
    icon: 0
    color: 0
    timezone: 0
    allowedSecurityLevel: 0
    population: 0
    ——————————————–
    Repeat many time how realm u want to mount (changing the ID in ALL cases)

    THEN be sure all your internet realm can work perfect as local realms, if work, ok, we can continue, if all work good, then edit your mangosd.conf and change that configurations parameters only!

    RealmID = 2
    (REMEMBER: must match the realmlist on the db logon serv!!!!!)

    GameType = 1
    (or 0 NORMAL 1 PVP 4 NORMAL 6 RP 8 RPPVP)

    –and—
    LoginDatabaseInfo = “;;;;realmd”

    i.e.:
    LoginDatabaseInfo = “243.45.159.45;3306;mangos;mangospws;realmd”

    the rest of connections can keep being local adresses on each realm

    ok, we are ready, now, we can up our realmlist

    run the REALMD.EXE on the logon server

    then.

    run the MANGOSD.EXE (ONLY don’t run the realmd.exe) on each internet realm.

    if all your connection to the logon db on each realm work then u have a wow serv whit internet_realm_list

    NOTE: make sure your logon serv can see your realms, and your realm can see the logon serv, and their DB (whit te respectives permision for insert, delete, update…etc, u know what permission need ;))

  21. Reaper-X said Nov 15, 2007 at 7:16 pm

    # Snurro

    Yes, currently i’m working on it .. and hopefully it’ll be not confusing as this one (that’s why it took me a while to write it lol)

    # EZ-Mouse and Sscutlima

    Glad to know it works for you too :)

    # SauronTheGreat

    Lol … ah actually as long as you have mysql installed, then you can do it too

    here’s a manual step on how to do it :

    1. open command prompt
    2. type :

    mysql -umangos -pmangos -D realmd

    INSERT INTO `realmlist` VALUES ( NULL, 'YOUR SECOND REALMD NAME', '127.0.0.1', 8086, 0, 2, 0, 0, 0 );

    to see if you’ve done it correctly type :

    SELECT * FROM `realmlist`;

    and see if you can see your newly created realmd name after typing the above SELECT ;)

  22. SauronTheGreat said Nov 15, 2007 at 3:48 am

    lol luckers, all I got is giant list of mistakes, and wtf this programm needed in 2nd step ? -_-

  23. Sscutlima said Nov 14, 2007 at 11:29 pm

    Ya, finally got mine to work, have the same sort of set up as EZ-Mouse, with one logon db.

  24. EZ-Mouse said Nov 14, 2007 at 9:26 pm

    I mount 2 local realm + 1 remote realm (internet on another city) (3 realms) whit only 1 logon db, and work perfect!!!!

  25. SauronTheGreat said Nov 14, 2007 at 8:02 pm

    Lol, the whole thing I was trying to make this damnit second realm, I didnt get anything with this step one, omfg ! Do I have to download it !? And what is it querty pfft … From all understendable so easy guides I found this one the most hardable to understend, and I still dont get first step with this damn programm sql or something, on how this working and etc !! What is it actually ? And can you share download link ???? Would be perfect -.- … Anyway thanks for ‘ good ‘ guide.

  26. Snurro said Nov 14, 2007 at 3:39 am

    I’ve manage to make my own server and everythings working:D But i just wonder can i make my own weapons? I’ve searched google for like 1/2 weeks now, (without finding anything)
    Then my friend telled me that you were going to make a guide about it is that true? And thanks for all the help your site gave me:D

  27. Sscutlima said Nov 13, 2007 at 10:15 pm

    Hi there, I recently updated to the latest release yesterday, and now made another server.

    Now, in SQLyog, I have the main database fodlers, then my new one called mangos-db2 which i imported the database file into. So, now when i load the first mangosd.exe it loads both the servers at once, but, the new server loops. I had managed to get access once but I can not get in anymore. I just thought that if i could get this to work properly i wouldnt have to hog all my ram by loading two seperate servers accessing the database.

    All of the tables work in relation perfect so its just the looping i cant seem to fix by adding the ip to the realmd table.

  28. Reaper-X said Nov 12, 2007 at 7:15 pm

    # Dorvita

    Could you tell me which mangos revision you’re using actually ?

    # Jimmy

    I’m really sorry for late reply because i didn’t saw your comment coming through

    actually previously (before writing this) i received email from few people and ask whether they’re able to run separate database with 2 realmd, and since i got confused on what they’re trying to do so i guess basically they’re looking for something like this

    and i’m really sorry if i’m not using the correct words because well basically i’m still learning too :)

  29. Dorvita said Nov 12, 2007 at 5:02 pm

    Hi there I have my server up and running all perfect but dont have any people ,animals or items also when I type something and click enter nothing appears can anyone please help?
    Many thanks..
    Dor.x

  30. Jimmy said Nov 7, 2007 at 11:58 pm

    You’re not making 2 realmds, you’re making 2 world servers or 2 instances of mangosd actually…might wanna get your wording right before publishing.

  31. Question about server's:) said Nov 5, 2007 at 6:36 pm

    Can u add me for msn? please my msn is Marius_94_1@hotmail.com!!!
    i need help with making my new server its gonna go up! please some of thoose peopels!
    i need make it!

  32. Dap said Nov 4, 2007 at 9:56 am

    I edit my items using SQLYog, go to your database (dbc), then under mangos, go to item_template and you can edit every item in the game there. You can also do much more than edit items, but also NPC’s, scripts, loot, and so on. After editing it you just save it in the window log, and save it into your data file from the SQLYlog program. Hope that made sense.

  33. njbs said Nov 4, 2007 at 1:45 am

    what do u mean by setby username 1?
    do i need a differnt database if i where to get bc?
    will i need better mangos?
    can i link me the site to create mangos?

  34. Reaper-X said Nov 1, 2007 at 6:00 pm

    # Malevo

    Ah .. try running the server instance config from the mysql shortcut in start menu if you want to set mysql to be included in your Env. path automatically :)

    # beaver

    Unfortunately it’s not possible for me to run internet based server because i’m still using slow connection (my upload speed 5 – 8 Kilobytes / second).. and that’s why i only open it for LAN connection only :(

    # njbs

    you mean Burning Crusade ? actually you can set TBC default into 1 by editing the account table in realmd (TBC Column)

    but if you’re using the mangosd command line to create new account (create username password), you’ll need to also type setbc username 1 :)

  35. njbs said Nov 1, 2007 at 1:28 pm

    hey reaper-x
    Once i make the sever, how do i make it have bc? Do i need to have another sever then the one you have provided?

  36. beaver said Nov 1, 2007 at 6:39 am

    whats your ip man.. i wanna join ya server ^^

  37. Malevo said Oct 29, 2007 at 9:10 am

    “i assume you’ve set the mysql bin path into your environment variable path”

    huh? o.o

  38. Reaper-X said Oct 28, 2007 at 1:18 am

    # Slacker6

    lol .. glad you found the solution by yourself :D

    # cman

    actually that nether drake is dependant on which database you’re using

    if you’re using my 4629 release and choose use the Unified Database, then you can use Nether Drake ;)

  39. cman said Oct 27, 2007 at 12:58 pm

    How do i add the .reload3 and the .reload 147 id commands to my server?? because i got the 2.1.3 server and the new nether drake mounts dont work it makes my character fly but there is no drake?? what do i do to fix please help and email me at ballzan@gmail.com

  40. Slacker6 said Oct 26, 2007 at 12:58 pm

    Never mind man, I fix my problems before you do hehe. Thanks for the support though. When I have someone to tell this stuff to I fix it right away. ;).

    Slacker

  41. Slacker6 said Oct 26, 2007 at 12:55 pm

    Hey reaper,

    If you check comments here I wanted to say my server is up and running beautifully and I love you for your time spent to work on this. But I have hit a problem when it comes to the second database. How does the long file stretch work when you replace the “mangos, mangos,manogs” deal?

  42. Reaper-X said Oct 25, 2007 at 7:17 pm

    unfortunately i dont use navicat so i dont know where to execute it in navicat

    but if you’re interested on executing / importing that sql file via the command prompt, here are the step :

    Note : i assume you’ve set the mysql bin path into your environment variable path

    1. open command prompt
    2. change directory to where you put that sql file
    3. type :

    mysql -umangos -pmangos -D mangos < that_sql_filename.sql

    and done :)

  43. Malevo said Oct 25, 2007 at 1:07 am

    Sorry for posting this here since its off topic, but this seems to be the only place peeps are helping me with this. So yeah, I created an SQL file for my item and I opened mysql through navicat. I just need to know where to execute the batch file or something.

  44. Reaper-X said Oct 24, 2007 at 5:27 pm

    # Kek

    I’m really sorry but i haven’t got a chance to try ascent :( … i don’t know why but it seems that ascent only allow specific people to access their svn repositories (or at least that’s what i’m thinking)

    # Malevo

    It’s a sql file, but i haven’t actually tried using / importing the sql file from them directly :)

    # Question

    Actually as long as you run it on different ports, it should be fine :)

  45. Question said Oct 24, 2007 at 6:25 am

    Hi, I have two computer’s that can run wow servers(i am already have one up and running). my question is can i use both of those computers to run two wow server at once on the same router? And still be able to get a connection from outside the router. How different are these steps and can you explain how to do this. thank you

  46. Malevo said Oct 23, 2007 at 2:38 am

    “u can use http://wow-v.com/weaponcreator.php

    I see. It gives me some sort of text however I’m still not sure what to do with that…

  47. kek said Oct 22, 2007 at 9:10 pm

    “How did you make those custom weapons”

    u can use http://wow-v.com/weaponcreator.php

  48. Malevo said Oct 22, 2007 at 11:54 am

    How did you make those custom weapons

  49. Kek said Oct 22, 2007 at 9:02 am

    Great guide, Also i Haven’t seen a “Ascent” guide for this? is there one about? thanks in advance

  50. Jared said Oct 22, 2007 at 5:26 am

    Sweet, thanks now I can have 2 servers.

Comments Navigation 1 2

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>