Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't access Admin area (but can access site)


barry_s

Recommended Posts

Hi,

 

I've just had my first attempt at setting up an osCommerce site, which I did on my laptop and all worked well. However, now that I've uploaded it to my host (oneandone.co.uk) I can access the catalog, but I get an error when I try to access the admin pages:

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/23/dxxxxxxxxx/htdocs/others/os/catalog/admin/includes/functions/database.php on line 19
Unable to connect to database server!

 

I'm guessing that somewhere along the line when I moved the site to my host, I've left in a reference to my local database rather than the hosted one. I'm not sure where though, as the actual store itself seems to be functioning fine.

 

Any help would be very much appreciated.

 

Thanks

 

Barry

Link to comment
Share on other sites

V6 you're a star, thanks so much for the quick response, my problem is solved!

 

This is the downside of automated installers; I just assumed there was only one config file!!

 

Barry

 

Compare the configure.php files. The one in catalog/includes sound like it is working ok, so copy the db settings from that one to the configure.php file in /catalog/admin/includes.

 

Good luck,

V6 :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...