Forum > Serverside Modding

[QUESTION] Ports for a wow server

(1/14) > >>

Смердокрыл:
Hey!
I already have a wow server and Im planning on creating a new, separate one. What should I do in order for their mysql databases not to merge (when only one server is running, I open mysql and can run both databases for some reason)?

Amaroth:
Both auth and world servers have config files authserver.conf and worldserver.conf (they are located in directory specified during compilation of emulator). In those config files you can find database connection settings, they look like this.:

--- Code: ---LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
--- End code ---

The only thing you will want to change is the last, "auth", thats database name.

You basically need to create a new characters and world databases for your worldserver and if you also want to create new authserver (that means that accounts will be separated and that there will NOT be one realm selection list), you will also need to create a new auth database. Otherwise you will have shared authserver and auth database for both realms.

So. Compile new core with new directories (both install and conf directories must be other than realm 1s) and
A - you want 2 realmlists - create new auth, characters and world databases and set both authserver's and worldserver's connections to them, you will also need to choose other than base ports on which auth and worldserver run (base are 3724 for auth and 8085 for world). Include authserver's port in client's realmlist file to connect to correct authserver.

B - you want one realmlist with 2 realms with shared account database - delete new authserver and authserver.conf, you won't need them, and just create new world and characters databases, configure new worldserver's connection settings in config so it connects to these new databases and again, don't forget to change worldservers base port 8085 to something else, 8086 will do - remember, you can't have 2 servers on same port. And btw, don't forget to include new realm in auth.realmlist table in database, in this case that table will contain 2 rows.

I hope I made myself enough clear and didn't confuse you, feel free to ask questions.

Смердокрыл:
These will be two completely different servers, with no single shared file.


--- Quote from: "Amaroth" ---Include authserver's port in client's realmlist file to connect to correct authserver.
--- End quote ---
How do I do that?

Also, I am using hamachi for people to connect to my server (because I use wifi, hence my ip changes). Is this gonna be a problem?

Смердокрыл:

--- Quote from: "Amaroth" ---base are 3724 for auth and 8085 for world
--- End quote ---
These ones are already used by the first server. Which ones should the 2nd one use?

Amaroth:
8086 for worldserver2 works, tested it myself. For second authserver, try 3725?

About realmlist, you will just have to include authserver's port there. So instead of for instance:

--- Code: ---set realmlist 46.28.108.57
--- End code ---
you will have to have something like:

--- Code: ---set realmlist 46.28.108.57:3724
--- End code ---
Thats the whole magic cast here :D.

Btw, I have never tryed running server under hamachi and I hate, hate and once more HATE that application so much that I won't ever install it on my machine again and won't ever try it. You will have to find someone else for helping you with any issue which comes from running server on hamachi itself.

Basically, you should still be able to use set realmlist IP:port. Hopefuly.

Navigation

[0] Message Index

[#] Next page

Go to full version