osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Unable to connect to database server - after changing configure.php files.

This is a discussion on Unable to connect to database server - after changing configure.php files. within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Hi everyone ! I have a site, that has been working great ! However :S Now I'm having quite the emergency ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-05-2007, 06:22 AM
Lurker
 
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Redhead_elf is on a distinguished road
Default Unable to connect to database server - after changing configure.php files.

Hi everyone !

I have a site, that has been working great !

However :S Now I'm having quite the emergency seen as I completely lost my site for an hour+ so far !

I had tried to add "www.mysite.com" instead of "http\\mysite.com"

I looked on forums and it said to change the configure.php files. the moment I did, I recieved this error :

"Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO)

in /home/mysite/public_html/catalog/includes/functions/database.php on line 19

Unable to connect to database server!"

PLEASE PLEASE HELP !

I had copied back to my server the same files exactly as they were before I changed them, and it's no turning back situation !

I don't know what to do and my hair is changing to white !

thanks so much in advance!

Red.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-05-2007, 07:22 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Unable to connect to database server - after changing configure.php files.

First,

The error has nothing to do with changing the url. You must have deleted the database settings. A nice trick is to look in the second configure.php file for the info.

View the catalog/admin/includes/configure.php file and copy the database information only from that file to your catalog/includes/configure.php file.

That should get you back in business.


One note - the admin configure.php file is NOT interchangeable with the catalog configure.php file, so do not copy the entire thing... Just the database connection info.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-05-2007, 07:50 AM
Lurker
 
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Redhead_elf is on a distinguished road
Default Re: Unable to connect to database server - after changing configure.php files.

Well, I managed to fix the problem, indeed after filling the information.

it's weird though, seen as I had the site working 100% fine for few monthes now, while the configure.php was empty of the above required information.

Now everything works after I filled in the data base etc...

but it was empty till now !

only after I tried chaning it to www.mysite.com did the problems start. I didn't delete or add anything.

doesn't matter though, it's working and I thank you for your time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-05-2007, 10:08 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Unable to connect to database server - after changing configure.php files.

osCMax/osCommerce simply cannot work ever without those settings. They were set and when your site stopped working, they were somehow un-set in the configure.php file.

Trust me, your configure.php file absolutely, positively, 100% for sure initially had those values set. When you edited the configure php file, you somehow removed the values. There are few things in this world I can be 100% sure about, but this is one of 'em. osCMax/osCommerce will not ever, ever, ever, ever work without those settings. If it was working they were set.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to connect to database server! zododo osCMax v1.7 Discussion 0 06-22-2006 12:33 AM
Can't connect to MySQL server on '207.44.142.34' (111)??? currie_muncher osCommerce 2.2 Installation Help 2 05-19-2005 09:08 PM
Unable to connect to database server! hondastunter osCMax v1.7 Installation 2 10-13-2004 07:14 AM
Changed configure.php, now "unable to connect to db ser wildgoddess osCommerce 2.2 Installation Help 3 04-25-2004 12:54 AM
unable to connect on localhost (10055) EPierre osCMax v1.7 Discussion 3 02-09-2004 10:22 PM


All times are GMT -8. The time now is 10:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax