Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error message


Guest

Recommended Posts

A visitor to my cart received this message:

 

Warning: mysql_connect(): Too many connections in /www/t/thinkingteal/htdocs/ttproducts/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

Several people have checked out the cart with no problems...any idea what could be causing this?

Link to comment
Share on other sites

From mysql manual

 

****************

If you get a Too many connections error when you try to connect to the mysqld server, this means that all available connections are in use by other clients.

 

The number of connections allowed is controlled by the max_connections system variable. Its default value is 100. If you need to support more connections, you should restart mysqld with a larger value for this variable.

****************

 

As the number of connections falls below YOUR limit the message disappears.

 

You should contact your host provider to see if he'll increase the number of connections for you (for $$$$ he will).

 

Make sure your not using persistent connection in both of your catalog/includes/configure.php and catalog/admin/includes/configure.php files. Set it to false.

 

HTH

Tom

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...