barry_s Posted November 11, 2005 Share Posted November 11, 2005 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 More sharing options...
VectorSix Posted November 11, 2005 Share Posted November 11, 2005 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 More sharing options...
barry_s Posted November 11, 2005 Author Share Posted November 11, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.