vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Moving attachment database error (https://vborg.vbsupport.ru/showthread.php?t=211800)

Lynne 05-08-2009 02:08 PM

That's a problem with your server. It could be your wait_timeout. But, you will need to talk to your host about this. (That is the error when trying to do it with batches of 300, you may have to do much smaller batches.)

stunod 05-09-2009 02:02 AM

Ok, thanks! You were right! I did it in a batch of 10 and it moved them into my folder. But, If I wanted to do this once a month or so, can I put them in the same directory that I just did or do I put it in a different directory? Also, is this something this is ok to do once a month?

I just looked at my database and it still says that there is 69.9mb of the attachements. How, or what do I do next now that I have moved them to the directory?

Thanks,
Adam

Lynne 05-09-2009 02:14 AM

Go to Maintenance > Repair/Optimize Tables > select the Attachment table > Repair/Optimize > Go That will reduce the size of your attachment table.

You don't need to do this once a month. For now on, anytime someone uploads an attachment, it will get put into that folder.

stunod 05-10-2009 12:21 AM

Oh sweet! You differently know your stuff!

Thanks a million!
Adam

stunod 05-16-2009 06:12 PM

Sometime is takes a while for the sizes to change in the database but I have waited forever and the database size has not changed. I dont think it has grown much but, I still need it smaller. Any ideas on how to make in smaller. I looked in the ftp location that I told the attachments to go to and they are there.

Adam

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

Ok, I just tested the database "vb_attachments" and logged into the "phpmyadmin" and deleted an attachment in there and found out that it deletes it out of my forum as well. I though the images were saved in the ftp directory and will not be saved in the database anymore. I'm I missing something?

Adam

Lynne 05-17-2009 01:44 AM

The attachment table still keeps information in there about the attachment, even though the attachment itself isn't there.

Did you run a repair/optimize on the attachment table after moving them out of the database and into the files? The size of the table will not change until you do so.

stunod 05-18-2009 04:52 AM

Yes, I have done that!


All times are GMT. The time now is 02:36 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.02081 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete