View previous topic :: View next topic |
Author |
Message |
Ansalon
Joined: 11 Sep 2011 Posts: 11
|
Posted: Sun Sep 18, 2011 3:34 Post subject: NWNX OBDC Not connecting on Linux 2.6 |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Sep 18, 2011 8:21 Post subject: |
|
|
Change server=localhost to server=127.0.0.1 _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Sun Sep 18, 2011 22:14 Post subject: |
|
|
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 |
|
|
|