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 
 
NWNX OBDC Not connecting on Linux 2.6

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



Joined: 11 Sep 2011
Posts: 11

PostPosted: Sun Sep 18, 2011 3:34    Post subject: NWNX OBDC Not connecting on Linux 2.6 Reply with quote

I have tried pretty much everything here..so my last ditch effort to go back to a NWN1 Server on Linux is here.
(Currently running it under Windows XP since I couldnt get NWNX to run under current linux)

I'm pretty well versed in Linux. Stats below

Running Slackware 12.1 (Linux 2.6.27.7-smp)

The Problem:
from nwnx_odmbc.txt
NWNX2 ODBC2 version 0.3 for Linux.
(c) 2005-2006 by dumbo (dumbo@nm.ru) & virusman (virusman@virusman.ru)
o SCO located at 82d9c44.
o RCO located at 82d9b60.
! Error while connecting to database: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
o Shutdown.
-----------------------

The database connects fine with my perl scripts and with PhPMyAdmin

----------------
nwnx2.ini
[NWNX]
disablenwnxinit=n #Set to "y" to not enforce the NWNX!INIT requirement
debuglevel=5

[ODBC2]
source=mysql
server=localhost #name of the database server
user=root #username to access db
pass=****** #password for username
db=NWN #database to connect to
debuglevel=5

[Debug]
debuglevel=5 #Set to 1 or higher to output successively
# # verbose debug information
[MNX]
debuglevel=5

[FUNCTIONS]
debuglevel=5

[HASHSET]
debuglevel=5

[LogDir]
logdir=logs.0 #Set to the relative root of the log directory.
------------

Running Module: (Module loads OK) NWN1 Linux Server 1.69
----------------------------------------------------------------------

NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xb8003f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xb8003f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Loading modules...
MNX plugin Registerred.
ERROR: ODBC: OnCreate() failed. <-------
HASHSET plugin Registerred.
FUNCTIONS plugin Registerred.
PROFILER plugin Registerred.
LETO plugin Registerred.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "Build_Tester"...
Server: Module loaded
----------------

Any Ideas?
Thanks.

---
Ansalon - The World of Krynn - Dragonlance
http://nwn.oldmmogamers.net
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Sep 18, 2011 8:21    Post subject: Reply with quote

Change server=localhost to server=127.0.0.1
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Sun Sep 18, 2011 22:14    Post subject: Reply with quote

There's a socket parameter too. For example:

[ODBC]
socket=/var/run/mysqld/mysqld.sock

Did you checked that your sock-file is there?
But yeah, setting it to IP will ignore the socket.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux 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