PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

PostPosted: Fri Oct 24, 2003 2:34 pm Reply with quote Back to top

One of the problems I have been dealing with is reaching the Maximum connections allowed to the MYsql database within the hour. This value, currently set to 3600 for each sql user seems to be inadequate.

I would like to know if anyone out there knows of a way one can force a connection to the database to remain open, thus resolving the above problem.

Any ideas or thoughts are always appreciated.

Cheers,
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Nov 05, 2003 7:23 am Reply with quote Back to top

A persistent connection is the TYPE of connection you are referring to. Reference this
Only registered users can see links on this board!
Get registered or login to the forums!
for a complete explanation. You can try this. In includes/sql_layer.php, find this line
Code:
$dbi=@mysql_connect($host, $user, $password);
and change it to
Code:
$dbi=@mysql_pconnect($host, $user, $password);
That may or may not help to circumvent the very restricted parameters that your host has set.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Nov 05, 2003 9:13 am Reply with quote Back to top

ooo I had this problem with my host and it was never resolved to my satisfaction and that is why I switched to
Only registered users can see links on this board!
Get registered or login to the forums!
I haven't looked back since!
View user's profile Send private message Visit poster's website
akky
Regular
Regular


Joined: Feb 18, 2006
Posts: 87

PostPosted: Wed Mar 29, 2006 3:39 am Reply with quote Back to top

I've just noticed this issue and was wondering what sort of errors you would see if the changes we made as you describe above.

Also, there is an option in the config.php file to have persistant connections, are there pros and cons for this.

akky
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Mar 29, 2006 3:47 am Reply with quote Back to top

I do not allow pconnects because they can tie your server up real fast. The little extra overhead caused by opening and closing is well worth it in the long run, believe me.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
akky
Regular
Regular


Joined: Feb 18, 2006
Posts: 87

PostPosted: Wed Mar 29, 2006 8:23 am Reply with quote Back to top

thx for that Raven, i'll leave as is then.
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum