Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What happened here?


themilkman

Recommended Posts

Posted

Everything is working fine, and now I get:

 

Warning: mysql_connect(): Too many connections in /home/9/5/5/2054/2054/public_html/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

Strange?

 

Anyone suggets anything?

Whats the point of a signature?

Posted

Just searched this on the internet and have found that this can be becuase I am on a shared host and someone elses website can be causing this.

 

May be worth looking at dedicated hosting if this is something that happens quite often on shared hosting.

Whats the point of a signature?

Posted

You can either change your .../includes/configure.php to allow persistent database connections or increase your max_connections in /etc/my.conf to allow more MySQL threads to run simlutaneously. I would suggest the former before the latter.

 

The default for value for max_connections is 100, I believe.

Posted

You mean use pconnect and set to true? Apparenty this is supposed to be no good as mysql_connect is the better option. Anyway I will set to true and check if it works.

Whats the point of a signature?

Archived

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

×
×
  • Create New...