Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What is happening???


2020

Recommended Posts

I have a online shop provided by oscommerce, and it was working right, but suddenly when i was visit my page, was appearing the follow message:

 

Warning: mysql_connect(): Too many connections in /home/faww/public_html/CAT/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

Please, can anybody help me?

 

Thanks for any help

Rodrigo

Link to comment
Share on other sites

I have a online shop provided by oscommerce, and it was working right, but suddenly when i was visit my page, was appearing the follow message:

 

Warning: mysql_connect(): Too many connections in /home/faww/public_html/CAT/includes/functions/database.php on line 19

Unable to connect to database server!

Please, can anybody help me?

 

Thanks for any help

Rodrigo

 

Your configuration file might have the wrong IP address in it. The file is /catalog/admin/includes/configure.php

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxx');

define('DB_DATABASE', 'xxxxx1');

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

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Where you see LOCALHOST above is where you might see an IP number. Change the IP number to LocalHost and you should be ok.

Link to comment
Share on other sites

  • 10 months later...

Archived

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

×
×
  • Create New...