Posts: 558
Threads: 59
Joined: Jun 2012
Reputation:
0
If i connect to the database and the xampp/wampp is closed wouldn't it prevent the connection? Cause for me it's say that the connection went succesfully and I'm really confused, cause if xampp/wampp is closed, how is it possible to connect in the first place?
Posts: 102
Threads: 2
Joined: Apr 2011
Reputation:
0
The questions are: which MySQL plugin do you use, and what is your code for checking the connection is successful? Some plugins return 1 for a successful connection, others return 0, so you might want to double-check that.
Also, is the returned value different depending on weither your WAMP server is on or off?
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
IIRC MySQL installed by xamp/wamp is a windows service set to run automatically. You have to shut it down manually from Services.
Posts: 558
Threads: 59
Joined: Jun 2012
Reputation:
0
So basically if this program runs into my computer, it won't matter wether or not I have the xampp/wampp closed, because of that program it reads it like it's open, right?
Posts: 102
Threads: 2
Joined: Apr 2011
Reputation:
0
Okay, can you now tell us if it makes any difference when the server is started? If it tells you "connection has failed", then you need to change "if( DbHandle )" to "if( !DbHandle )" in the 3rd line you posted.