the server files run in Linux
1.prepare your linux system and mysql(db_account,db_game,db_log)
2.trans it to /home
3.edit files
/home/db
run.sh
#!/bin/sh
cd /home/db
ulimit -c unlimited
rm *.pid -f
/home/db/guard -c /home/db/guard_user.ini
server_user.ini
[dbserver]
ListenIp = "localhost"
ListenPort = "9006"
[db_login] <------lost part-------->
Server = "mysql ip"
Port = 3306
Database = "db_account"
UserName = "username"
Password = "password" <------lost part-------->
[db_game]
Server = "username"
Port = 3306
Database = "db_game"
UserName = "username"
Password = "password"
[db_log]
Server = "mysql ip"
Port = 3306
Database = "db_log"
UserName = "username"
Password = "password"
guard_user.ini
[Guard]
ApplicationName="db_server"
ApplicationConfigName="db_server_user.ini"
GuardPort=9008
PublishServerIP="localhost"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
------------------/home/game
guard_user.ini
[Guard]
ApplicationName="game_server"
ApplicationConfigName="server_user.ini"
GuardPort=9008
PublishServerIP="localhost"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
server_user.ini
[client]
Capability = "2000"
UseGate = "false"
ListenIp = "localhost"
ListenPortal = "192.168.1.200"
ListenPort = "8886"
[login]
BindIP = ""
BindPort = ""
ConnectIp = "localhost"
ConnectPort = "9002"
[game_db]
BindIP = ""
BindPort = ""
ConnectIp = "localhost"
ConnectPort = "9006"
[log_db]
BindIP = ""
BindPort = ""
ConnectIp = "localhost"
ConnectPort = "9006"
[server]
Description = "korean_test_server"
name = "玫粮"
location = "192.168.1.200"
Idx = 1
Order = 1
ListPv = 0
[anti_robot]
OpenFlag = "false"
ClientDetect = "false"
StartAuto = "false"
EctypeAskFlag = "false"
[licenseport]
port = 9101
[licenseserver]
sv1 = "192.168.1.200"
sv2 = "192.168.1.200"
sv3 = "192.168.1.200"
/game/login
guard_user.ini
[Guard]
ApplicationName="login_server"
ApplicationConfigName="login_user.ini"
GuardPort=9008
PublishServerIP="localhost"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
login_user.ini
Capability = "3000"
ListenIp = "192.168.1.200"
ListenPort = "8888"
[user]
Capability = "2000"
ListenIp = "192.168.1.200"
ListenPortal = "192.168.1.200"
ListenPort = "8885"
StateLev1 = 500
StateLev2 = 1000
[server]
Capability = "64"
ListenIp = "localhost"
ListenPort = "9002"
[db]
BindIP = ""
BindPort = ""
ConnectIp = "localhost"
ConnectPort = "9006"
[billing]
use = false
ConnectIp = "localhost"
ConnectPort = "9020"
[guard]
Description = ""
GuardPort = "8002"
UseGuard = "false"
[Login]
Name="login_OPT"
Accept="a7aaaa"
[autostat]
Enable = false
[licenseport]
port = 9101
[licenseserver]
sv1 = "192.168.1.200"
sv2 = "192.168.1.200"
④run the server
cd /game/db (it show connect succesfull)
./run.sh
cd /game/login (it show nothing)
./run.sh (going on to run game server)
cd /game/game
./run.sh
after runs game server,it'll show connect faild ..............
it's not matter .you just to wait about 5 minutes .
than it'll start
sry for my bad english
Não sei nada de Mysql tou começando agora, queria saber como monta esse server, tenho o ubuntu instalado, Queria que alguem que Saiba mexer Bastante em Mysql dêi-me um Help ae
Abraços[/list]