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 
 
NWNX2 & MySQL Problem

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Azer



Joined: 22 Sep 2005
Posts: 2

PostPosted: Thu Sep 22, 2005 10:36    Post subject: NWNX2 & MySQL Problem Reply with quote

I'm developing script for a nwn server (so i run a small server and the game on the same pc for test).

I installed mySQL Server 4.1 (the admin of the shard wont use mySQL so I can't use anather db) MyODBC, MySQL Administrator 1.1, Apache e PHP.
I configured with the Windows control panel the access via ODBC and the test output "connect".

I can work with the db via
PHP ( -> perfect)
MyPhpAdmin ( -> perfect)

I tried to create a table via SQL in a nwn script using nwnx2 2.61... nothing. I can see result...

There is someone who can help me, please?

P.S. my nwnx.ini is:
Code:

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

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

[ODBC2]
   source = mysql
   server = localhost
   user   = root
   pwd    = xxxxx
   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


P.P.S. I'm italian... sorry for my English.
Back to top
View user's profile Send private message MSN Messenger
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Thu Sep 22, 2005 15:38    Post subject: Reply with quote

First make sure that these two parts under [ODBC2] are commented out:

Code:


; Use these two settings for the SQLite internal database
;source = sqlite
;file   = mydb.db

; Use these two settings for ODBC connections
;source = odbc
;dsn    = nwn



NWNX will use the first entry it finds, and the MySQL Direct Connect is the third entry....

If they ARE commented, set your debugging to "2" in the INI file, load the APS_DEMO.MOD and then post the contents of your NWNX and NWNX_ODBC log files after the server has booted/run long enough to experience your error.....
Back to top
View user's profile Send private message
Azer



Joined: 22 Sep 2005
Posts: 2

PostPosted: Sat Sep 24, 2005 22:41    Post subject: Reply with quote

Quote:
If they ARE commented, set your debugging to "2" in the INI file, load the APS_DEMO.MOD and then post the contents of your NWNX and NWNX_ODBC log files after the server has booted/run long enough to experience your error.....


They are commented with the ";"... I tried olso to delete the lines like sqlite and odbc...

Where I have to put debugging to "2"? In which configuration file?

Thants a lot! Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support All times are GMT + 2 Hours
Page 1 of 1

 
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