Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2011, 03:13 AM
heraldic2
Fire Beetle
 
Join Date: Sep 2010
Posts: 15
Default EQEmuLoginServer mysql query fail

I have gotten done installing a fresh server on my fresh and updated XP computer. I am using Secrets of Faydwer. I know i am tired and my eyes are glazing over so what silly thing am I missing?

I run the startup.bat file and the world seems to load fine, however the login server gives this message:

[Debug] [01.24.11 - 01:55:34] Logging System Init.
[Debug] [01.24.11 - 01:55:34] Config System Init.
[Debug] [01.24.11 - 01:55:34] MySQL Database Init.
[Database] [01.24.11 - 01:55:34] Failed to connect to MySQL database.
[Debug] [01.24.11 - 01:55:34] Encryption Initialize.
[Debug] [01.24.11 - 01:55:34] Encryption Loaded Successfully.
[Debug] [01.24.11 - 01:55:34] Server Manager Initialize.
[Network] [01.24.11 - 01:55:34] ServerManager listening on port 5999
[Debug] [01.24.11 - 01:55:34] Client Manager Initialize.
[Network] [01.24.11 - 01:55:34] ClientManager listening on Titanium stream.
[Network] [01.24.11 - 01:55:34] ClientManager listening on SoD stream.
[Debug] [01.24.11 - 01:55:34] Server Started.
[Network] [01.24.11 - 01:55:48] New world server connection from 192.168.1.73:12
88
[Database] [01.24.11 - 01:55:48] Mysql query failed: SELECT WSR.ServerID, WSR.Se
rverTagDescription, WSR.ServerTrusted, SLT.ServerListTypeID, SLT.ServerListTypeD
escription, WSR.ServerAdminID FROM tblWorldServerRegistration AS WSR JOIN tblSer
verListType AS SLT ON WSR.ServerListTypeID = SLT.ServerListTypeID WHERE WSR.Serv
erLongName = 'Heraldics World of Fun' AND WSR.ServerShortName = 'HWoF'
[World] [01.24.11 - 01:55:48] Server Heraldics World of Fun(HWoF) attempted to l
og in but database couldn't find an entry but unregistered servers are allowed.
[Database] [01.24.11 - 01:55:48] Mysql query failed: SELECT max(ServerID) FROM t
blWorldServerRegistration
[Database] [01.24.11 - 01:55:48] Mysql query failed: UPDATE tblWorldServerRegist
ration SET ServerLastLoginDate = now(), ServerLastIPAddr = '192.168.1.73' where
ServerID = 0

My current eqemu_config.xml file:

<?xml version="1.0"?>
<server>
<world>
<shortname>HWoF</shortname>
<longname>Heraldics World of Fun</longname>

<!-- address has to be specified for minilogin to work -->
<address>99.99.***.***</address>
<localaddress>127.0.0.1</localaddress>

<!-- Loginserver information. -->
<loginserver>
<host>192.168.1.73</host>
<port>5999</port>
<account>root</account>
<password*****1234</password>
</loginserver>

<!-- Sets the shared key used by zone/launcher to connect to world -->
<key>make up some random string of characters here</key>

<!-- Enable and set the port for the HTTP service -->
<http port="9080" enable="true" mimefile="mime.types"/>
</world>

<!-- Database configuration, replaces db.ini -->
<database>
<host>127.0.0.1</host>
<port>3306</port>
<username>root</username>
<password>*****1234</password>
<db>peq</db>
</database>
</server>


My eqemulogin.ini file:

[LoginConfig]
loginserver=99.99.***.***
loginport=5999
DumpPacketsIn=false
DumpPacketsOut=false
Trace=false
DatabaseServerName=localhost
DatabaseCatalogName=PEQLoginServerDB
DatabaseUserName=root
DatabaseUserPassword=*****1234
OPCodePathAndFileName=login_opcodes_sod.conf

and finally my login.ini:

[database]
host = 192.168.1.73
port = 3306
db = peqlogindb
user = root
password = *****1234
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5999
local_network = 192.168.1.

[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf

[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType


Thank you for your time
H
Reply With Quote
  #2  
Old 01-24-2011, 03:22 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

If you look at your database, do you have a table named tblWorldServerRegistration?
Reply With Quote
  #3  
Old 01-24-2011, 03:57 AM
Noport
Opcode Ninja
 
Join Date: Mar 2009
Location: San francisco
Posts: 426
Default

i'm getting this error

[Debug] [01.23.11 - 23:44:38] Logging System Init.
[Debug] [01.23.11 - 23:44:38] Config System Init.
[Debug] [01.23.11 - 23:44:38] MySQL Database Init.
[Debug] [01.23.11 - 23:44:38] Encryption Initialize.
[Debug] [01.23.11 - 23:44:38] Encryption Loaded Successfully.
[Debug] [01.23.11 - 23:44:38] Server Manager Initialize.
[Network] [01.23.11 - 23:44:38] ServerManager listening on port 5999
[Debug] [01.23.11 - 23:44:38] Client Manager Initialize.
[Network] [01.23.11 - 23:44:38] ClientManager listening on Titanium stream.
[Network] [01.23.11 - 23:44:38] ClientManager listening on SoD stream.
[Debug] [01.23.11 - 23:44:38] Server Started.
[Network] [01.23.11 - 23:45:08] New world server connection from 127.0.0.1:51503
[Network Error] [01.23.11 - 23:45:08] Recieved application packet from server that had an unknown operation code 0x1000.
Reply With Quote
  #4  
Old 01-24-2011, 06:58 PM
heraldic2
Fire Beetle
 
Join Date: Sep 2010
Posts: 15
Default

I have two databases. I have peq, for the world server, and I have peqlogindb for the login server. Peqlogindb contains:
tblloginserveraccounts
tblserveradminregistration
tblserverlisttype
tblworldserverregistration

tblworldserverregistration contains 1 row:
INSERT INTO `tblworldserverregistration` (`ServerID`, `ServerLongName`, `ServerTagDescription`, `ServerShortName`, `ServerListTypeID`, `ServerLastLoginDate`, `ServerLastIPAddr`, `ServerAdminID`, `ServerTrusted`, `Note`)
VALUES (1, 'Heraldics World of Fun', 'the server', 'HWoF', 3, '2011-01-24 00:27:08', '0.0.0.0', 1, 0, 'This is the server.');
Reply With Quote
  #5  
Old 01-24-2011, 10:53 PM
Noport
Opcode Ninja
 
Join Date: Mar 2009
Location: San francisco
Posts: 426
Default

edit config.ini to look like this your welcome
[Database]
host=192.168.1.73
user=root
password=*****1234
database=peq
compression=off

[General]
quests=C:\EQEmu\quests\

if using sof client change all ports=5998 not 5999

edit eqemulogin.ini file
[LoginConfig]
loginserver=99.99.***.***
loginport=5998
DumpPacketsIn=false
DumpPacketsOut=false
Trace=false
DatabaseServerName=localhost
DatabaseCatalogName=PEQLoginServerDB
DatabaseUserName=root
DatabaseUserPassword=*****1234
OPCodePathAndFileName=login_opcodes.conf <-- if using sof client

just a note: you have it like this PEQLoginServerDB
now you need to make a new directory in peq server to say the same
not unless your going to change all of them back to peqlogindb
Reply With Quote
  #6  
Old 01-25-2011, 01:12 AM
heraldic2
Fire Beetle
 
Join Date: Sep 2010
Posts: 15
Default

Sorry Noport,
I tried it all and had same error message.

Come on Lerxst I know you can tell me the answer! The priests of syrinx are counting on us!
Reply With Quote
  #7  
Old 01-25-2011, 09:29 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Well, it would seem you have a DB problem somewhere. I'd try following the steps under "Setup PEQLoginDB DB and Logins" in this guide again and hope for the best.

http://www.eqemulator.org/forums/showthread.php?t=31783
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:49 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3