MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 16th, 2013, 10:48 AM
pete_wilde pete_wilde is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 pete_wilde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 0
Question App works in XAMPP but not WAMP ???

Hi,

I have a small application which accesses a MySQL database and prints out the results.

I can either run the application from my windows desktop or from within a browser using 127.0.0.1/cgi-bin/application.exe

Here's the problem. When using XAMPP the application works fine in both modes, but when using WAMP the application only works from the desktop, not when run from within a browser.

Both XAMPP & WAMP have the same verion of Apache (2.4.2) and the same version of MySQL (3.5.1).

The details are:

Run from the desktop using XAMPP = Application works fine
Run from within Browser using XAMPP = Application works fine

Run from the desktop using WAMP = Application works fine
Run from within Browser using WAMP = Runs ok, but stops when it reaches the MySQL bit and displays "Unable to connect to MySQL Database".

The fact that the application works correctly from the desktop in WAMP rules out a privilege problem.

Likewise it runs any code prior to the MySQL bit in the browser ok, so it's not an Apache config problem i.e. It is running the .exe ok.

Can't see any reason as to why the application only fails in a browser when using WAMP.

Any guru have the answer?

Thanks & regards,

Pete

Reply With Quote
  #2  
Old February 16th, 2013, 12:06 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,051 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 4 h 41 m 20 sec
Reputation Power: 7104
What language is the application written in? The problem is probably there rather than with the database.

The database version number you give doesn't make sense, there is no MySQL 3.5. Maybe you mean 5.1.3?
__________________
PHP FAQ
How to program a basic, secure login system using PHP
Connect with me on LinkedIn


Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old February 17th, 2013, 05:35 AM
pete_wilde pete_wilde is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 pete_wilde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by E-Oreo
What language is the application written in? The problem is probably there rather than with the database.

The database version number you give doesn't make sense, there is no MySQL 3.5. Maybe you mean 5.1.3?


Hi E-Oreo,

Apologies mate - I was quoting the phpMyAdmin version.

Details are:
Database client version: libmysql - mysqlnd 5.0.10 - 20111026
Database Server Software version: 5.5.24
phpMyAdmin version: 3.5.1
Apache/2.4.2 (Win64) PHP/5.4.3


The application is a compiled ".exe" file.

As indicated its run 100% ok from the desktop - just now from a browser when using WAMP (127.0.0.1/cgi-bin/app.exe)

Runs 100% ok from both desktop and browser when using XAMPP.

Cheers,

Pete

Reply With Quote
  #4  
Old February 17th, 2013, 12:20 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,051 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 4 h 41 m 20 sec
Reputation Power: 7104
Quote:
The application is a compiled ".exe" file.

What language was the application programmed in before you compiled it into an executable? PHP? I ask because it is extremely unusual for PHP to be precompiled into an executable like that, particularly when it's being run from a web environment.

As I mentioned before, I doubt the problem here is with the database. It is probably an incompatibility between the executable code and WAMP. You might need to tweak the code for the executable or you might need to tweak the configuration for WAMP, or possibly it's something that can't be fixed easily.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > App works in XAMPP but not WAMP ???

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap