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 and MySQL Server reboot

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



Joined: 09 Jan 2005
Posts: 3

PostPosted: Fri Apr 01, 2005 13:53    Post subject: NWNX and MySQL Server reboot Reply with quote

We've just started using the ODBC2 functionality with NWNX and found that when our server oes a complete re-boot (ie, the machine shutsdown and then restarts), NWNX loads before MySQL does. This is causing ODBC2 to report a no connection state.

Are there any tricks to stop NWNX from loading too quickly?

Thanks,

Sheldon.
Back to top
View user's profile Send private message Send e-mail
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Fri Apr 01, 2005 22:57    Post subject: Reply with quote

This is nothing more than a workaround, but what about the following: Create a batch file that has these lines in it:

@echo off
sleep 60
c:\nwn\nwnx.exe parameter1 parameter2 ....

This would wait 1 minute before it loads nwnx, giving mysql enough time to come up. If you have set your system up to somehow use services, there is a way to make a service depend on another - but I do know how from the top of my head.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
princewally



Joined: 29 Dec 2004
Posts: 9

PostPosted: Mon Apr 04, 2005 14:44    Post subject: Reply with quote

If you install MySQL to run as a service, and put the shortcut to NWNX in your startup folder, MySQL will start first.
Back to top
View user's profile Send private message
sheldie



Joined: 09 Jan 2005
Posts: 3

PostPosted: Mon Apr 04, 2005 16:08    Post subject: Reply with quote

Papillon wrote:
This is nothing more than a workaround, but what about the following: Create a batch file that has these lines in it:

@echo off
sleep 60
c:\nwn\nwnx.exe parameter1 parameter2 ....

This would wait 1 minute before it loads nwnx, giving mysql enough time to come up. If you have set your system up to somehow use services, there is a way to make a service depend on another - but I do know how from the top of my head.


Thanks, that is what I had thought of, just thought there might be something more eleigent.
Back to top
View user's profile Send private message Send e-mail
sheldie



Joined: 09 Jan 2005
Posts: 3

PostPosted: Mon Apr 04, 2005 16:09    Post subject: Reply with quote

princewally wrote:
If you install MySQL to run as a service, and put the shortcut to NWNX in your startup folder, MySQL will start first.


MySQL is running as a service and NWNX is in the startup folder...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows 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