psyris Posted July 20, 2008 Share Posted July 20, 2008 Hi Any assistance with this would be much appreciated I have been developing a store and on my localhost on my desktop pc, everything is working fine have uploaded it and change the configuration to my live server, the catalog part works fine however if i try to get into the admin are i get this message Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /serverstring/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server! please ignore the bold part, that is just my server location i have checked the config and it is correct as i have installed a blank version and it all works fine, but for some reason this occurs just for the admin area any help would be great thanks for your time M Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted July 20, 2008 Share Posted July 20, 2008 Compare the credentials in /includes/configure.php and admin/includes/configure.php if your shop works and admin does not then the first file should contain the correct ones. Here is a fake set of credentials define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'rqqt'); define('DB_SERVER_PASSWORD', 'dfreHfrdJJ'); define('DB_DATABASE', 'shop1'); Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
psyris Posted July 20, 2008 Author Share Posted July 20, 2008 Hey, ah good point, what noob of me. Didnt check the admin config file was so focused on the catalog one. Cheers for your help M Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.