MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 May 29th, 2002, 11:22 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,234 drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 257
using oscommerce - can't find database

Hi,

I'm using oscommerce on winXP at home; I have gotten apache & php to work together, but cannot figure out how to properly configure mysql to work w/ php & apache.

I try to load a .php page from the oscommerce package, and get the follow error message:

Unable to connect to database server!

I have loaded the tables into mysql - its running as a service in winXP.

PHP pages w/o mysql run OK on my computer.

Any ideas on where I could begin troubleshooting this? Is it an apache configuration issue? Or... ???

I appreciate any help that can be offered...

Reply With Quote
  #2  
Old May 30th, 2002, 03:43 AM
sylow sylow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Alkmaar
Posts: 96 sylow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 10 m 41 sec
Reputation Power: 9
did you try to connect mysql on command promt?
mysql.exe should be in bin directory of the mysql installation.
__________________
Sylow Web Development and Design
Web Developer

Reply With Quote
  #3  
Old May 30th, 2002, 09:27 PM
thedude thedude is offline
The Dude Abides
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,063 thedude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 10 h 1 m 34 sec
Reputation Power: 11
It sounds like you don't have oscommerce setup properly. Check the configure.php, and application_top.php scripts to be sure all the database connection info is in there. It sounds like oscommerce can't find a database
__________________
The Dude
I'm the Dude. So that's what you call me.
That, or Duder, His Dudeness, Or El Duderino.
If, you know, you're not into the whole brevity thing

Reply With Quote
  #4  
Old May 30th, 2002, 11:20 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,234 drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 257
Quote:
Originally posted by sylow
did you try to connect mysql on command promt?
mysql.exe should be in bin directory of the mysql installation.


Thank you for the response. I am able to connect to mysql via command prompt, and can view the contents of the tables included with oscommerce. So, I'm OK there.

Reply With Quote
  #5  
Old May 30th, 2002, 11:25 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,234 drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 257
Quote:
Originally posted by thedude
It sounds like you don't have oscommerce setup properly. Check the configure.php, and application_top.php scripts to be sure all the database connection info is in there. It sounds like oscommerce can't find a database


I've been trying to correctly configure these files, but haven't found the right combination yet...

I am able to access the admin section, albeit w/ error messages...


Warning: open(/tmp\sess_19b47c8b9976f1175703e116f49ff83e, O_RDWR) failed: No such file or directory (2) in f:\apache\apache\htdocs\admin\includes\functions\sessions.php on line 4

Warning: Failed opening '//catalog/includes/data/rates.php' for inclusion (include_path='.;c:\php4\pear') in f:\apache\apache\htdocs\admin\includes\include_once.php on line 4

Warning: Failed opening 'includes/languages/english/' for inclusion (include_path='.;c:\php4\pear') in f:\apache\apache\htdocs\admin\includes\include_once.php on line 4


I'm still trying to figure out what these mean...

There is also a file in /includes/functions/ called database.php, which seems to control the actual connection to mysql; however, it seems that all of the variables called in that page are defined elsewhere.

It stands to reason that the mysql configuration(s) would occur in the configure.php and application_top.php files, though I haven't been able to discover the means by which I communicate with php where it can find the mysql tables.

Anyhow... more input is appreciated... and I greatly appreciate the fact that you obviously have prior experience using this software that you're able to draw upon in your responses... much thanks again....


Reply With Quote
  #6  
Old May 30th, 2002, 11:32 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,234 drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 257
OK. Now I'm confused.

I'm actually not able to locate the configure.php file - I did find a 'readme' file in /includes/local, which says:


This directory contains local configuration information.

It also must contain a file named configure.php that can be used to override
the defaults set in application_top.php

Also it *MUST* end with the following lines:

// This is needed to tell application_top.php that we were read in and OK
define('CONFIGURE_STATUS_COMPLETED', 1);

Remember to execute PHP commands the file needs to start with <? and end with ?>



So, is there a configure.php file? Is this something I'm meant to create?

Reply With Quote
  #7  
Old May 31st, 2002, 01:44 AM
thedude thedude is offline
The Dude Abides
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,063 thedude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 10 h 1 m 34 sec
Reputation Power: 11
Which version of OSC are you using?

Older versions (pre 2.2), don't use the configure.php, they just use the application_top.php file for configs. Be sure to look through the entire script.

You may have a problem with the paths to your sessions. Note the change in backslashes and forward slashes. And it looks like your paths to the other things are incorrect as well. Your include path looks kind of bizarre.

Is it pointing to the location on your drive of the files? Keep messing around with the paths.

Reply With Quote
  #8  
Old June 4th, 2002, 02:52 PM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,234 drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level)drgroove User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 257
Quote:
Originally posted by thedude
Which version of OSC are you using?

Older versions (pre 2.2), don't use the configure.php, they just use the application_top.php file for configs. Be sure to look through the entire script.

You may have a problem with the paths to your sessions. Note the change in backslashes and forward slashes. And it looks like your paths to the other things are incorrect as well. Your include path looks kind of bizarre.

Is it pointing to the location on your drive of the files? Keep messing around with the paths.


I'll check into the version # & get back to ya - thx again for the replies!
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > using oscommerce - can't find database


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT