icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » Maximum SQL Connections

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old February 24th, 2007, 11:22 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Feb 2007
Lives in England, UK
11 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to PhilDPhoto
Maximum SQL Connections

I was just revising my site, to ensure that it doesn't break the resource allocations of a shared server.

However, my whole site runs from an SQL Database (content etc) like a small cms, However, I'm a little confused as to the 15 maximum MySQL User Connections, does this mean if there is 16 users on my site at any one time, then there will be 16 user connections to my MySQL database? and therefore "abusing the resources"?

Or have I got myself a little mixed up?
PhilDPhoto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 12:10 PM   #2 (permalink)
Surpass Fan
Comfy Contributor
 
Joined in Dec 2004
224 posts
Gave thanks: 6
Thanked 19 times
It means 15 connections at one time, your CMS will open a connection for usually less than a second to pull its information out of the DB and then close the connection, so, if you have more than 15 people on your site at one time, you shouldn't be "abusing resources" until you have many more than 15 people on at a time.
__________________
SH106 - out-burst.org
lonelydreamer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 12:14 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Feb 2007
Lives in England, UK
11 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to PhilDPhoto
ok, thanks for that, I was getting a little worried

My CMS is self written, will I manually need to write in with a bit of PHP to close the connection once it's retrieved it's data or is this an automatic function?
PhilDPhoto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 12:20 PM   #4 (permalink)
Surpass Fan
Comfy Contributor
 
Joined in Dec 2004
224 posts
Gave thanks: 6
Thanked 19 times
I believe (someone please correct me if i'm wrong) that if you open your connection with mysql_connect(), it will create a non-persistent connection which simply means it closes after your code is executed. So you shouldn't have anything to worry about.
__________________
SH106 - out-burst.org
lonelydreamer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 2:42 PM   #5 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
7,243 posts
Gave thanks: 118
Thanked 236 times
Send a message via AIM to DewKnight Send a message via MSN to DewKnight Send a message via Yahoo to DewKnight
Quote:
Originally Posted by lonelydreamer View Post
I believe (someone please correct me if i'm wrong) that if you open your connection with mysql_connect(), it will create a non-persistent connection which simply means it closes after your code is executed. So you shouldn't have anything to worry about.
I'm pretty sure that I've seen it somewhere that it will close itself, but I still like to put mysql_close(); at the end of a page just to be safe.
__________________
Russell P. - Server Analyst I
Mountain Dew Knight
DewKnight is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 8:21 PM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Feb 2007
Lives in England, UK
11 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to PhilDPhoto
Thanks, i've been reading a few threads about suspended accounts, i would rather take precautionary measures than complain needlessly later
PhilDPhoto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks PhilDPhoto for this great post!
Kayla (February 24th, 2007)
Old February 24th, 2007, 11:05 PM   #7 (permalink)
Surpass Fan
Comfy Contributor
 
Joined in Dec 2004
224 posts
Gave thanks: 6
Thanked 19 times
Quote:
Originally Posted by PhilDPhoto View Post
Thanks, i've been reading a few threads about suspended accounts, i would rather take precautionary measures than complain needlessly later
I like the way you think But on a side note, you might want to put your server's name, and one of those nifty SL average images in your signature. Instructions on how to do both are in the announcement forums, I believe.
__________________
SH106 - out-burst.org
lonelydreamer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 24th, 2007, 11:19 PM   #8 (permalink)
Senior Member
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
25,189 posts
Gave thanks: 982
Thanked 879 times

Default Medal 
Total Awards: 1

I *love* the way Phil thinks! Thank you for being so responsible!
__________________
Add Surpass on Twitter and Facebook for great deals and contests FIRST!
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On