logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Trying to follow data NWN => MySQL and back
Goto page Previous  1, 2
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
DM_GoodTime



Joined: 02 Nov 2005
Posts: 5
Location: fairbanks, alaska

PostPosted: Fri Sep 29, 2006 21:09    Post subject: Reply with quote

ok i change my nwnx.ini and the server crashes when i click on the sign in the aps_demo.mod

this my nwnx.ini


; NWNX2 configuration file
; These are the default values for NWNX2. Values specified on the command
; line take precedence.

[NWNX]
ServerPort = 5121
ModuleName = "aps_demo"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = no
UpdateIntervalGamespy = 20
GamespyRetries = 5
OldGamespyProtocol = no
RestartDelay = 5

[ODBC2]
; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 0=nothing, 1=only errors, 2=everything



;Use these five settings for MySQL connections
source = myodbc
server = localhost
user = root
pwd =xxxxxxxxx
db = NWN

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true

[PROFILER]
MaxLogSize = 512 ; in KByte
LogLevel = 1 ; 1=overall statistics, 2=full script callstack









this my log.0 nwnx_odbc

o Critical Error: Datasource must be MySQL, ODBC, or SQLite.
o Got request: DROP TABLE pwdata



sorry guys i have no clue what im doing lol
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Sep 30, 2006 10:52    Post subject: Reply with quote

Hmm, it would have been easier to use the original nwnx.ini and edit your connection parameters there. What kind of ini file is that ? It does not even contain the SQLite database option.

As the logfile clearly states, you cannot specify "myodbc" as the source, it has to be "MySQL". Also make sure you setup a mysql user and password and add the login information accordingly, e.g.

Quote:
; Use these five settings for MySQL connections
source = mysql
server = localhost
user = myuser
pwd = mypassword
db = nwn

_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Sat Sep 30, 2006 14:35    Post subject: Reply with quote

Your other trace option is the one provided by your ODBC driver.
There should be a 'Trace' option you can select. Any database requests/responses will be logged to a textfile.

Cheers
Gryphyn
Back to top
View user's profile Send private message
DM_GoodTime



Joined: 02 Nov 2005
Posts: 5
Location: fairbanks, alaska

PostPosted: Sun Oct 01, 2006 2:12    Post subject: got it working Reply with quote

hey thanks guys i got it working lol i had to the db= nwn in caps lol plus i was seting the odbc driver which i didnt need which i knew i didnt need when it wasnt working i added it thinking i need it it just the caps that all thank u for the help lol
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Oct 01, 2006 9:55    Post subject: Reply with quote

Uh... Question yeah, your're welcome and such. lol.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group