View previous topic :: View next topic |
Author |
Message |
metamud
Joined: 30 Sep 2008 Posts: 16
|
Posted: Wed Oct 01, 2008 9:06 Post subject: MySQL "port" and "unix_socket" params |
|
|
I'm using the odmbc plugin (because I need the scorco hooks, I'm not using the db one).
Two parameters from mysql_real_connect were still missing support in nwnx2.ini:
- specifying a port number (if mysql server does not run on default port)
- specifying the location of the unix socket file (when connecting to "localhost")
I implemented and tested both, and have diffs against revision 187 available.
Example of new port and socket options in nwnx2.ini:
Use this if you are running a mysqld on the same server as "nwserver" and want to specify the location of the mysql server's unix socket:
Code: | [ODBC2]
source=mysql
server=localhost
socket=/home/nwn/mysql/mysqld.sock
user=nwn
pass=<withheld>
db=NWNX |
Use this if the mysql server runs on a different host and port, e.g., on port 5000 in this snippet:
Code: | [ODBC2]
source=mysql
server=somewhere.example.com
port=5000
user=nwn
pass=<withheld>
db=NWNX |
|
|
Back to top |
|
|
metamud
Joined: 30 Sep 2008 Posts: 16
|
Posted: Thu Oct 09, 2008 23:34 Post subject: |
|
|
Ahem. File reading permission errors of the diffs file fixed. Sorry if you tried to download them and got a booboo.
Is this interesting enough for enough people to have enough motitvation to get it merged into the trunk?
Can I post the patches to the forum directly? Does no one care and can I just delete this stuff? I'm still happy with them, but no need to have this post here just for ego boosting. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Oct 09, 2008 23:39 Post subject: |
|
|
Thanks for the diff. It's a nice addition to the plugin.
I'm planning to merge it into the trunk, but didn't have time yet (it requires a small modification).
Btw, I downloaded the file without errors the same day you posted it.
Last edited by virusman on Thu Oct 09, 2008 23:50; edited 1 time in total |
|
Back to top |
|
|
metamud
Joined: 30 Sep 2008 Posts: 16
|
Posted: Thu Oct 09, 2008 23:48 Post subject: |
|
|
Right. I had no idea if anyone was interested at all, because I got no response so far.
If there is anything I can do to help out with the diffs, just let me know and I'll be happy to lend a hand. |
|
Back to top |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Fri Oct 10, 2008 9:22 Post subject: |
|
|
Nice Addition!
Must i do the changes by myself or will there a new version released? _________________ Mikel of Avalon
Kalandur - Die vergessene Welt |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
|