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 
 
Error while connecting to database

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
dzakary



Joined: 30 Apr 2009
Posts: 1

PostPosted: Thu Apr 30, 2009 15:31    Post subject: Error while connecting to database Reply with quote

Hi,

I'm having a problem getting connected to the mysql database. I've read through all the other threads regarding this issue and none have resolved my problem.

the log gives the following:-

Logfile maximum size limit is: 1048576 bytes
o Log level: Everything will be logged.
o Using ODBC connection.
o Hooking SCO....hooked at 5d5830
o Hooking RCO....hooked at 5d5710
! Error while connecting to database: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

my NWNX.ini looks like this

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

; Use these five settings for MySQL connections
source = mysql
server = localhost
user = zak
pwd = dbpw
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 = 2 ; 1=overall statistics, 2=full script callstack
"

I've downloaded the latest version of the files from your website

"nwnx_261.zip - nwnx_odbc2_0924.zip - nwnx_profiler_160.zip - nwnx_hashset_101.zip - "


EDIT: the nwnx.txt also has the following

"
NWN Extender V.2.6.1
(c) 2005 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.nwnx.org

* Loading plugins...
* Plugin hashset is loaded.
* Plugin leto is loaded.
* An error occured during OnCreate of odbc
* Plugin profiler is loaded.
* NWNX2 activated.
"

Any suggestions would be appreciated

thanks
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Thu Apr 30, 2009 16:32    Post subject: Reply with quote

You're missing the [ODBC2] line before the nwnx_odbc config block.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related 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