ka ob´s das gibt nichts gefunden also wenns das schon gibt einfach schließne
In diesem Tutorial zeig ich euch wie man die Datenbank über ein zweiten Server laufen lässt wie z.B. Webspace Server oder so
Ihr braucht:
-Server(Root/DynDns (hamachi weiß ich nicht ob´s geht)
-Webspace oder 2ten Server
-Brain.exe (Gibts NICHT bei mir ich hab nur noch eine!)
So fangen wir an
1. Als erstes connectet ihr per Navicat zu eurer DB die noch auf eurem Server ist!
2. Nun dumped ihr jede Datenbank also rechtsklick auf account,player usw und dann dump SQL File!
3. So, jetzt müsst mit Navicat zu euren 2ten Server connecten und dann die Dumped SQL Files ausführen!
So nun habt ihr schonmal die Datenbank auf eurem zweiten Server nun muss nur noch die Main Server wissen wie er zu eurem 2ten Server als DB connectet!
1. Ihr ladet euch jede Config runter (am besten für jede Config ein Verzeichnis erstellen)
2. Nun seht ihr :
Code:
HOSTNAME: game2 CHANNEL: 1 PORT: 13004 P2P_PORT: 14004 DB_PORT: 15001 DB_ADDR: [COLOR=Red]localhost[/COLOR] MAP_ALLOW: 3 4 23 24 43 44 107 5 25 45 70 71 72 73 74 75 77 78 TABLE_POSTFIX: ITEM_ID_RANGE: 250000001 300000000 PASSES_PER_SEC: 25 SAVE_EVENT_SECOND_CYCLE: 180 PING_EVENT_SECOND_CYCLE: 180 COMMON_SQL: [COLOR=Red]localhost root mt2[/COLOR]!@# common PLAYER_SQL: [COLOR=Red]localhost mt2 mt2[/COLOR]!@# player LOG_SQL: [COLOR=Red]localhost mt2 mt2[/COLOR]!@# log #TEST_SERVER: 1 pk_server: 1
Nun verändert ihr sie um das sie so aussieht :
Code:
HOSTNAME: game2 CHANNEL: 1 PORT: 13004 P2P_PORT: 14004 DB_PORT: 15001 DB_ADDR: [COLOR=Red]2te Serverip[/COLOR] MAP_ALLOW: 3 4 23 24 43 44 107 5 25 45 70 71 72 73 74 75 77 78 TABLE_POSTFIX: ITEM_ID_RANGE: 250000001 300000000 PASSES_PER_SEC: 25 SAVE_EVENT_SECOND_CYCLE: 180 PING_EVENT_SECOND_CYCLE: 180 COMMON_SQL: [COLOR=Red]2te Serverip 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# common PLAYER_SQL: [COLOR=Red]2te Serverip 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# player LOG_SQL: [COLOR=Red]2te Serverip 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# log #TEST_SERVER: 1 pk_server: 1
So die DB Config sieht aber anders aus!
Die sieht so aus:
Code:
WELCOME_MSG = "DB Server has been started" SQL_ACCOUNT = "[COLOR=Red]localhost account mt2 mt2[/COLOR]!@# 0" SQL_PLAYER = "[COLOR=Red]localhost player mt2 mt2[/COLOR]!@# 0" SQL_COMMON = "[COLOR=Red]localhost common mt2 mt2[/COLOR]!@# 0" SQL_HOTBACKUP = "[COLOR=Red]localhost hotbackup mt2 mt2[/COLOR]!@# 0" TABLE_POSTFIX = "" BIND_PORT = 15001 DB_SLEEP_MSEC = 10 CLIENT_HEART_FPS = 25 HASH_PLAYER_LIFE_SEC = 600 BACKUP_LIMIT_SEC = 3600 PLAYER_ID_START = 100 PLAYER_DELETE_LEVEL_LIMIT = 70 ITEM_ID_RANGE = 70000001 100000000 LOCALE = big5
Code:
WELCOME_MSG = "DB Server has been started" SQL_ACCOUNT = "[COLOR=Red]2te Serverip account 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# 0" SQL_PLAYER = "[COLOR=Red]2te Serverip player 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# 0" SQL_COMMON = "[COLOR=Red]2te Serverip common 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# 0" SQL_HOTBACKUP = "[COLOR=Red]2te Serverip hotbackup 2ter Server login name(DB) 2ter Server login pw(DB)[/COLOR]!@# 0" TABLE_POSTFIX = "" BIND_PORT = 15001 DB_SLEEP_MSEC = 10 CLIENT_HEART_FPS = 25 HASH_PLAYER_LIFE_SEC = 600 BACKUP_LIMIT_SEC = 3600 PLAYER_ID_START = 100 PLAYER_DELETE_LEVEL_LIMIT = 70 ITEM_ID_RANGE = 70000001 100000000 LOCALE = big5
MfG
.Best
€dit: Pls kommt mir nich mit sowas hier an : "Ja wusst ich zwar schon aber wird anderne betimmt helfen THX" weil die meisten die es wissen würden es pub machen!






