Page 1 of 1
Second Server or Test Server
Posted: Mon Oct 05, 2009 6:52 pm
by Ninja
Hi.
I have a live server and I want to create a second server for testing purposes only. The server will be GM Only.
Also I want to login from the same IP, 2 different gameservers (Bartz - Sieghard) and to have 2 different DBs.
If this is possible can somebody please tell me how can I do that?
Thanks.
Re: Second Server or Test Server
Posted: Mon Oct 05, 2009 7:12 pm
by macdonald12
Just register your 2nd gameserver on the loginserver, on an available slot. Pretty much the same you had to do for registering your other server.
As for the database, just create the new one with a different name.
Re: Second Server or Test Server
Posted: Mon Oct 05, 2009 8:38 pm
by Ninja
I copy the DB I have in my live server to another DB with different name. Then I registered a new gameserver and saved the hex id into the 2nd gameserver (test). I edit the requestedserverid in server.properties to 2 and I run the gameserver.
Is not working.
FATAL: Failed to open server socket. Reason: Address already in use: bind
Damn! Registration failed: Reason Wrong hex id.
I did something wrong?
Re: Second Server or Test Server
Posted: Tue Oct 06, 2009 12:08 am
by kotk
Did you change the gameserver port in the 2nd servers configs?
Re: Second Server or Test Server
Posted: Wed Oct 07, 2009 2:11 pm
by JMD
7778 or something else on your second server and you are done.
Re: Second Server or Test Server
Posted: Thu Oct 29, 2009 12:15 pm
by jurchiks
not just port, you need to change the GS server.properties file from
# Database URL
# URL = jdbc:mysql://localhost/l2jdb (default)
# URL = jdbc:hsqldb:hsql://localhost/l2jdb
# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password =
URL = jdbc:mysql://localhost/l2jdb
to
URL = jdbc:mysql://localhost/YOURDATABASENAMEHERE