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 
 
Errors connecting to database

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



Joined: 19 Mar 2005
Posts: 3
Location: Phoenix, AZ, USA

PostPosted: Sat Mar 19, 2005 6:34    Post subject: Errors connecting to database Reply with quote

Can somebody please give me a clue, I load my module using nwnx2 and immediately get this error in the log;

! Error while connecting to database: [MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'@'localhost' (using password: NO)
o Got request: select tag,value from ats_data where player='Sancho Hardbottle' and name='Sancho Hardbottle' limit 0,1
! SQL Error: [MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'@'localhost' (using password: NO)
o Sent response (-1 bytes):
o Disconnecting from database.

My nwnx.ini file looks like this;

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

[NWNX]
ServerPort = 5121
ModuleName = "A_Test_Mod"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = no
UpdateIntervalGamespy = 60
GamespyRetries = 1
OldGamespyProtocol = no
RestartDelay = 10

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

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

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

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

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

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

I'm new to MySQL and NWNX2 so any help would be greatly appreciated.

Thanks, Sancho
Back to top
View user's profile Send private message
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Sat Mar 19, 2005 14:50    Post subject: Reply with quote

I'm not overly familair with the error, could you first check youve got the latest version of NWNX installed:

Main program: 2.6.1
ODBC2: 0.9.2.4
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Sat Mar 19, 2005 16:45    Post subject: Reply with quote

If you are really using MySQL you need to comment out the sqllite settings and uncomment the mysql settings. the ";" is treated as a comment in a .ini file.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
sanchohardbottle



Joined: 19 Mar 2005
Posts: 3
Location: Phoenix, AZ, USA

PostPosted: Sat Mar 19, 2005 18:38    Post subject: Reply with quote

Yes it is v. 2.6.1, I tried changing the ini file to:
; Use these two settings for the SQLite internal database
;source = sqlite
;file = sqlite.db

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

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

But I still get the same error message;
Access denied for user 'ODBC'@'localhost' (using password: NO)
Back to top
View user's profile Send private message
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Sat Mar 19, 2005 22:40    Post subject: Reply with quote

I didn't spot it mentioned in your post, are you sure you absolutely sure havn't got the old ODBC module in there instead of the ODBC2 beta (version 0.9.2.4) ?

I can't see why if you had ODBC2 with sqlite previously configured that it would ever generate a Access Denied error.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
JeroenB



Joined: 31 Dec 2004
Posts: 228
Location: Netherlands

PostPosted: Sun Mar 20, 2005 0:00    Post subject: Reply with quote

It looks like the ODBC driver is being used for database access. This is strange as the new version shouldn't do that. You could try to see if the ODBC driver is correctly configured, just like the configuration in the nwnx2.ini file.
Back to top
View user's profile Send private message Visit poster's website
sanchohardbottle



Joined: 19 Mar 2005
Posts: 3
Location: Phoenix, AZ, USA

PostPosted: Sun Mar 20, 2005 3:17    Post subject: Reply with quote

The files I downloaded and installed are;

MyODBC-3.51.11-1-win.exe
mysql-essential-4.1.10-win32.msi

along with the Administrator and Browser GUIs
I'll try uninstalling everything, redownloading and reinstalling, got my fingers crossed. Rolling Eyes

Sancho
Back to top
View user's profile Send private message
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Sun Mar 20, 2005 4:47    Post subject: Reply with quote

If your reinstalling just make sure your using this version of the plugin:
http://www.nwnx.org/uploads/media/nwnx_odbc2_0924.zip

You shouln't need MyODBC as the new plugin can access MySQL directly, and hence a little bit faster.
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
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