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. Coffe said Sep 20, 2009 at 1:28 pm

    I got AC Web MaNGOS Hybrid. How shall i do at number 2?

  2. comcom said Oct 23, 2008 at 8:46 pm

    I got this thing. Did everything like the guide said. I see my 4 realms (2 out and 2 local realms). But when I start the second server…it “crashes” in a minute and the other keeps running.

    Got no error log or conflict with the ports…so what can it be?

  3. adidrpb said Aug 7, 2008 at 9:05 pm

    Hy..it’s my first server, but I have a little problem,…..It’s stock at connected,…can someone help me with this…..???
    Tks….

  4. Craz said Jul 6, 2008 at 2:13 pm

    its up and running but how do i log in… i dont have an active accoutn do i have to have one?

  5. ben said Jun 24, 2008 at 6:49 pm

    wen i make my ps will i be abll to go on wow with out internet and can i limit the amant off pips that go on ther ??

  6. Weiss935 said Jun 22, 2008 at 9:10 pm

    i mean mysql -u root -p -D realmd

  7. Weiss935 said Jun 22, 2008 at 9:10 pm

    write:
    mysql -u root -p realmd

  8. wow lover said Apr 16, 2008 at 1:28 am

    hello, one little problem about 3.2 i have done everything in 3.1 and when i try to do 3.2 when i write: mysql -u root -p… and press enter then system shows me the system canot find file specified! plz help me.

  9. weiss935 said Mar 30, 2008 at 3:20 am

    my first realm is named reaper-x and how can i name it to weiss realm 1?

  10. weiss935 said Mar 30, 2008 at 12:49 am

    how do i delete databases?

  11. Russell said Mar 29, 2008 at 12:37 am

    @kradnam

    if you copied the mangos database into mangos2 and 3, then the character info would stay the same.

    Since these are seperate databases, you can delete characters from 1 of them , and it won’t affect the others.

  12. weiss935 said Mar 18, 2008 at 10:34 pm

    and when i try to login to realmd 2 this text comes loggin in to relm 2 and then i come back to there i choose realm but the other realm works great

  13. weiss935 said Mar 18, 2008 at 10:32 pm

    i’ve done a new character database named characters2 and writed it in mangosd but when i start mangosd it didn’t find characters2 database. what to do?

  14. Russell said Mar 13, 2008 at 10:21 pm

    I have an interesting problem. I have the second realm up and running, and when I log into wow, I can choose either realm.. The problem is that when I log out of one realm, and it takes me back to the character list, and I click change realm, it just says retrieving realm list. It will not bring the list of realms back up until I completely exit wow, and log in again.

    Any ideas?

  15. Firane said Mar 7, 2008 at 10:18 pm

    @kradnam
    @reaper
    your welcome
    yea in the guide i didnt really see anything about that
    when i looked at it i would think for sure reaper would have that in there
    its like the most important part
    u might want to add that in reaper

  16. kradnam said Mar 7, 2008 at 1:46 pm

    @Firane

    Woot thanks much, i have read 3 of 4 diff guides how to and not one mentions a 2nd characters database.. how the hell can that be left out … well thanks so much again now if i can find a guide on how to get a web account page goin i will be good

  17. Firane said Mar 7, 2008 at 10:22 am

    @kradnam
    u need to make a new characters database
    so make a new DB called characters2
    then import the DB from the reaper folder and assign ur second realm in mangosd.conf to point to that second characters
    that way u can have 2 different character things to save too
    and do the same for ur 3rd db

  18. kradnam said Mar 6, 2008 at 9:42 pm

    OK i got the server running with no prob, i cant figure out how to get a dign in page running at all and now this 2nd realm thing is driving me nuts. i got it when i log in i see all 3 realms and can log into all 3 of them BUT they are all the same … same scharacters and everything, so if i delete from 1 realm it deletes that alt from all 3 realms. i know ihafta be missing something here, even tho that has to have been the most confusing guide i have read yet. i am using navicat, mysql and of course reaper x mangos 5225, seeing as how the guide wasnt to helpful can someone tell me what i am doin wrong .. i did everything just like this guide said and still nothing .. or is this guide seriously outdated and dont work for 5225?

  19. weiss935 said Feb 16, 2008 at 8:12 pm

    i have done everything right now and i have two realms but when i open the first mangos it can’t find the error loading ‘ gameobject.template’ table (not exist?)
    what can i do?

  20. guido said Feb 11, 2008 at 6:28 pm

    Hi, I have 2 mangos.exe
    one on a PC and another on a second PC.
    I want to use an only reaml.exe on one of two PC.

    Problem is when I insert the ip in the mangos.conf of the realm.exe on other PC, I have a connection mistake to the DB

  21. Louis said Feb 10, 2008 at 4:58 pm

    Has anyone had a problem with actually logging in to a second realm on their server? I can see the realm when I log in, but when I try to get on the new realm, it bounces me back to the list of realms. The original realm is still accessible. I’ve got all the ports forwarded correctly (the original realm works fine). I’ve also tried addressing the 2nd database with the root user and password in mangosd.conf. I have also given the mangos user permissions to the new databases in MySQL. Any ideas?

    Reaper– Thanks for all the time you put into this. You Rock!

  22. scott said Jan 28, 2008 at 10:25 pm

    um ho do ifind the mongos first step were are they that would help

  23. Steve said Jan 28, 2008 at 1:52 am

    weiss935 i got dc and you went offline i hope u get it sorted im not familiar with the dlink but u need to get port 8085 and 8086 forwarded on ure internal ip 192.168.1.3 and it didnt seem to work

  24. Steve said Jan 27, 2008 at 9:25 pm

  25. weiss935 said Jan 27, 2008 at 6:41 pm

  26. weiss935 said Jan 27, 2008 at 6:02 am

    i’ve fixed that:P now when my server is upp i just find the second realm. but i have both mangosd open and one realmd open.

  27. weiss935 said Jan 27, 2008 at 5:47 am

    “127.0.0.1;3306;root;yourpassword;yoursecondmangosdatabasename”

    I don’t know my seconddatabasename or my password.
    how do i get them?

  28. weiss935 said Jan 27, 2008 at 5:24 am

  29. weiss935 said Jan 27, 2008 at 4:00 am

    i don’t understand how to create a new database.
    Help please

  30. Chrisb said Jan 27, 2008 at 12:39 am

    ALL with 2 realms and same characters. It is an easy fix actually. you need to create a second character database and add it into your mangosd.conf same as you did with the realm. ex: i named my second mangos database `mangos2` and i also created `characters2` then upload your characters.sql to database. and chage mangosd.conf. Hope this helps.

    -Chris

  31. Steve said Jan 27, 2008 at 12:21 am

    ok for anyone wanting to have different characters on each realm here is wat you have to do:

    1. edit mysql with your preffered tool i used phpmyadmin which is quite user friendly.

    go into the characters database and click operations and then at the section copy database to type in characters2 then ensure structure and data is selected and click go.

    2. open the mangosd.conf for the second server and edit this line:

    CharacterDatabaseInfo = “127.0.0.1;3306;mangos;mangos;characters”

    to:

    CharacterDatabaseInfo = “127.0.0.1;3306;mangos;mangos;characters2″

    now i also creates another user so my line is:

    CharacterDatabaseInfo = “127.0.0.1;3306;mangos2;mangos;characters2″

    note the user us mangos2 however im no certain u need to do this as i havnt tried without it if u do simply go to the home page of phpmyadmin and click privelages and then create new user ensure u set the username to mangos2 and password to mangos and give the user full privelages to the relevant databases i.e realmd and characters2 and so on..

    hope this helps

  32. Steve said Jan 26, 2008 at 9:51 pm

    n1t3 i found the solution jst after my last post lol

    project needs
    1. need 1 realm server
    2. need 2 mangos server running pointing to same realmd but different db
    3. edit realm config to load both realms
    4. make 2 database name 1 mangos and other mango
    5. make sure both database are starting properly

    follow these steps and should be no problems.

    hope this helps im gna try it now

  33. Steve said Jan 26, 2008 at 9:48 pm

    very grateful if someone has a solution to the character system i.e having diff characters for each realm, im kinda thinkin u would need 2 databases but if not please let me know :)

  34. Steve said Jan 26, 2008 at 9:47 pm

    Jerememy you need a capital -D or it will not understand your command :)

  35. Steve said Jan 26, 2008 at 9:46 pm

    sorry this was for weiss935

    ok i know ure problem mate u have copied a line from this post and as reaper stated it will give u curly quotes ““ see the difference go into ure config and replace the quotes with normal quotes this will resolve the problem

  36. Steve said Jan 26, 2008 at 9:45 pm

    ok i know ure problem mate u have copied a line from this post and as reaper stated it will give u curly quotes ““ see the difference go into ure config and replace the quotes with normal quotes this will resolve the problem

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>