Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2012, 07:31 PM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need Help ASAP

Hostmonster sent me an e-mail stating that one of my database tables was over 3 gigs and they were going to suspend my site if I didn't do something to correct it. In their terms of aggreement is does state their fact. So I googled vbulletin filedata.db and found a post about using the admincp attachment and move them to a file outside your database. I did that and they got copied over into the new directory I made. It left the old ones in the database. I deleted some of the old files and then posted a new post with four attachments. It incremented the filedata.db by 4 also? I thought it would now store them in the new directory I made. I guess I missed a step.
Reply With Quote
  #2  
Old 03-27-2012, 08:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The database still needs a row to point to the file. It's just that the actual file itself is not stored in the database, but information about the attachments - size, dimensions, who owns it, etc - is still stored in the database.
Reply With Quote
  #3  
Old 03-27-2012, 09:08 PM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would mine still stay at the same amount of memory. And this is how I understand what you said. When I moved the attachments only the pictures went? And now when I upload pictures it goes to my new directory and only the info for the picture goes to the filedata table?
Reply With Quote
  #4  
Old 03-27-2012, 09:36 PM
setishock setishock is offline
 
Join Date: Feb 2008
Location: Houma, La.
Posts: 1,177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you run > update counters? Specially the one about rebuild attachments?
Might be that simple.
Reply With Quote
Благодарность от:
bremereric
  #5  
Old 03-27-2012, 11:06 PM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by setishock View Post
Have you run > update counters? Specially the one about rebuild attachments?
Might be that simple.
Did that and it didn't help but thanks for the suggestion.
Reply With Quote
  #6  
Old 03-27-2012, 11:13 PM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I inherited this board some I did not set it up. I still need an experts help. I moved the attachments to a new file directory or so I thought. There are jpgs in that directory that I can open. The filedata table stayed at 3.0 gb. I ran the rebuild attachments and it stayed at 3.0 gb. I checked the table and optimized the table it stayed at 3.0 gb. I am attaching some screen shots of the table maybe someone may see something I am not.
Attached Images
File Type: jpg ScreenHunter_02 Mar. 27 19.01.jpg (49.9 KB, 0 views)
File Type: gif ScreenHunter_03 Mar. 27 19.03.gif (40.9 KB, 0 views)
File Type: gif ScreenHunter_04 Mar. 27 19.04.gif (13.1 KB, 0 views)
Reply With Quote
  #7  
Old 03-27-2012, 11:35 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you use the choices under Attachments > Attachment Storage Type? I first tried (on a test site) changing the setting in the options. That seemed to change the setting to say they were in the file system but it didn't change the database. Then I found the Attachment Storage Type menu, moved them back to the database, then moved them to the file system. When that finished there was a screen telling me to compare two numbers to make sure all attachments were moved successfully, and if they were you next had to click on the link to delete them from the database and recover the space from the table.
Reply With Quote
2 благодарности(ей) от:
bremereric, setishock
  #8  
Old 03-28-2012, 12:45 AM
setishock setishock is offline
 
Join Date: Feb 2008
Location: Houma, La.
Posts: 1,177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kh99 that info needs to be put somewhere where it can be found easily by others having that problem.
Reply With Quote
  #9  
Old 03-28-2012, 01:10 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the setting in the options?
Reply With Quote
  #10  
Old 03-28-2012, 01:27 AM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Did you use the choices under Attachments > Attachment Storage Type? I first tried (on a test site) changing the setting in the options. That seemed to change the setting to say they were in the file system but it didn't change the database. Then I found the Attachment Storage Type menu, moved them back to the database, then moved them to the file system. When that finished there was a screen telling me to compare two numbers to make sure all attachments were moved successfully, and if they were you next had to click on the link to delete them from the database and recover the space from the table.
I don't know what happened the first time but I renamed the previous attachment directory folder I created and created a new one. I let it work it's majic and let it run it's course. Second time was a charm. After it removed them from the database I optimized the table just a directed and I am at 119 mb database now.
Attached Images
File Type: gif ScreenHunter_01 Mar. 27 21.05.gif (22.2 KB, 0 views)
File Type: gif ScreenHunter_02 Mar. 27 21.09.gif (11.1 KB, 0 views)
File Type: gif ScreenHunter_03 Mar. 27 21.10.gif (39.7 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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:17 PM.


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.10849 seconds
  • Memory Usage 2,285KB
  • 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
  • (2)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
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (6)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete