Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2011, 12:21 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default database error!

for few days i get this database error coming in my email...

and i did not do any mod,or anything to the site in the last week or so,
and i get this error:

Code:
Database error in vBulletin :
 
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User xxxxxx_xxxxxx  already has more than 'max_user_connections' active connections
/home/xxxxx/public_html/xxxxxxx/includes/class_core.php on line 314
 
MySQL Error   :
Error Number  :
Request Date  : Tuesday, August 23rd 2011 @ 07:12:55 PM
Error Date    : Tuesday, August 23rd 2011 @ 07:12:55 PM
Script        : http://xxxxxxxxxx.com/forumdisplay.php?35-Filme-Engleza
Referrer      :
IP Address    : xxxx.xx.xx.xxx
Username      :
Classname     : vB_Database
MySQL Version :
any idea why?
thanks,
Reply With Quote
  #2  
Old 08-24-2011, 12:26 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
User xxxxxx_xxxxxx already has more than 'max_user_connections' active connections
Contact your host about this. This is not an issue with vBulletin
Reply With Quote
  #3  
Old 08-24-2011, 12:35 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok,i will thanks friend,for clarifying this for me!

--------------- Added [DATE]1314154229[/DATE] at [TIME]1314154229[/TIME] ---------------

Quote:
Originally Posted by HMBeaty View Post
Contact your host about this. This is not an issue with vBulletin
also can you see this error that i got about a week ago,
and i have asked my host and they said that is from the script ,they said that vb script is using
"simultaneous database connections"

and this was the error:

Code:
Database error in vBulletin :
 
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home5/xxxxx/public_html/xxxx/includes/class_core.php on line 314
 
MySQL Error   :
Error Number  :
Request Date  : Friday, August 12th 2011 @ 04:27:17 AM
Error Date    : Friday, August 12th 2011 @ 04:27:17 AM
Script        : http://xxxxxxx.com/calendar.php?month=3&year=2007&c=1&do=displaymonth
Referrer      :
IP Address    : xxxxx
Username      :
Classname     : vB_Database
MySQL Version :

thank you,for any help...
Reply With Quote
  #4  
Old 08-24-2011, 09:03 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This isn't a problem with vBulletin, this is a problem with your shared server limits as set by your host.

If it continues, then you have outgrown the use of the shared server you have and you need to look for a better server.
Reply With Quote
  #5  
Old 08-24-2011, 09:13 PM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
This isn't a problem with vBulletin, this is a problem with your shared server limits as set by your host.

If it continues, then you have outgrown the use of the shared server you have and you need to look for a better server.
are you talking about the first problem,or the one bellow...

thanks friend
Reply With Quote
  #6  
Old 08-24-2011, 09:21 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They are both related.

From what I can recall bluehost limits connections to mysql to 30 simulaneous connects. All it takes to trip that limit is 31 people, spiders, bots, whatever to access the site at the same moment in time. That accounts for the first error.

Also, bluehost had (don't know if they still do have) a 60 second real-time CPU usage limit over a 3 minute period. That can account for the second error.

Those are simplified explanations, but close enough for this purpose.

You can lower the connections a bit by not allowing spiders and unregistered users access to things like the calendar, who's online, member profiles and any other info that might be useless to them.
Reply With Quote
  #7  
Old 08-24-2011, 09:37 PM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:::::You can lower the connections a bit by not allowing spiders and unregistered users access to things like the calendar, who's online, member profiles and any other info that might be useless to them.:::::


and how do i do that?


i have notice something on my forum,when i go to see whos online ,i get 14 users/guest

but one ip stands out ,starting with 119....

and if i go here and trace it it comes from japan ,and my site does not have nothing to do with japan,and also see that pic bellow there are a lot of 119.xxx.xxx and finishing with other numbers from the same place!,

thanks
Attached Images
File Type: jpg 8-24-2011 3-33-34 PM.jpg (19.4 KB, 0 views)
Reply With Quote
  #8  
Old 08-24-2011, 09:43 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
:::::You can lower the connections a bit by not allowing spiders and unregistered users access to things like the calendar, who's online, member profiles and any other info that might be useless to them.:::::


and how do i do that?


i have notice something on my forum,when i go to see whos online ,i get 14 users/guest

but one ip stands out ,starting with 119....

and if i go here and trace it it comes from japan ,and my site does not have nothing to do with japan,and also see that pic bellow there are a lot of 119.xxx.xxx and finishing with other numbers from the same place!,

thanks
The baidu spider, one of the nastiest there is.
Reply With Quote
  #9  
Old 08-24-2011, 09:47 PM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so i guess ,that whats trriger all that on my site?

is there any mod to stop that?

i mean ,those ip's come with different numbers to the end all the time...

i did install this mod here

but dont know if will it work,it looks like i have to add those ip's all the time..

thanks for any advice!
Reply With Quote
  #10  
Old 08-25-2011, 06:28 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
so i guess ,that whats trriger all that on my site?

is there any mod to stop that?

i mean ,those ip's come with different numbers to the end all the time...

i did install this mod here

but dont know if will it work,it looks like i have to add those ip's all the time..

thanks for any advice!
If I am not mistaken, Baidu Spider will respect robots.txt. So you may want to add this to your robots.txt fle (or create a new file if you do not have one) - this file should be in the root of your website, and add:

Code:
User-agent: Baiduspider
Disallow: /
Other than that, vB 4 is not going to last on shared hosting long. You may want to look into a VPS to start out, or possibly a dedicated server if warranted.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04747 seconds
  • Memory Usage 2,283KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete