Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to connect to database


turant

Recommended Posts

My host has just changed my site to a new server and when I visit my shop I get the following message

 

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user: 'mydatabase@localhost' (Using password: YES) in /home/myrootdrive/public_html/catalog/includes/functions/database.php on line 17

Unable to connect to database server!

 

I have had a look in the configuration files in catalog and admin but cant find the server info other than the Http address for the site. I have gone into the mysql and checked the passwords are the same as before.

Any suggestions would be most welcome

Thanks

Turan

Link to comment
Share on other sites

The database info is at the bottom of the configure file. If your site was just copied, then it should work. Perhaps they neglected to copy the database? You should talk to them since they were the ones that broke it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

look in the configure.php file..

 

define('USE_PCONNECT', 'false'); // use persistent connections?

 

Set that to false...it sounds like it's not allowed, and you probably have it set to true.

 

The same entry is in both (admin and catalog) configure.php files.

Link to comment
Share on other sites

Thanks Guys, It would appear my host reset the passwords to the site. I have changed them back to the ones previously and hey presto it works

Thanks all the sale

Regards

turan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...