Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to connect to database server!


Guest

Recommended Posts

Posted

I was getting very close to making my site live but still needed to add SSL support. After my host installed the cert any browser access is stopped by this:

 

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/23/d174745365/htdocs/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

I can access the database perfectly through the host control panel so I have to assume it is a configuration issue with OSCommerce.

 

Any help would be appreciated.

 

Al

Posted

Allow me to clarify:

 

I also have OSCommerce Admin Access. It is just the customer who is attempting to access the site that is met with the error.

 

Al

Posted

Never mind. The problem was in defining my DB_SERVER constants.

 

Thanks,

 

Al

Archived

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

×
×
  • Create New...