themilkman Posted February 12, 2008 Posted February 12, 2008 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?
themilkman Posted February 12, 2008 Author Posted February 12, 2008 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?
krnl Posted February 12, 2008 Posted February 12, 2008 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.
themilkman Posted February 12, 2008 Author Posted February 12, 2008 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?
themilkman Posted February 12, 2008 Author Posted February 12, 2008 Lol - now it works, thanks. Whats the point of a signature?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.