TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 811
  • Total: 811

MySQL growing too much per day

Started by insanemustang, July 22, 2007, 07:10:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

insanemustang

My SQL table for TP is growing at a meg or two a day.  I have a 100 mb limit from my host per table and I was wondering what to do to reduce the size of this table.

To try and help my problem, on the admin side of TP, I went to forum maintenance, optimized the tables, emptied out unimportant logs and recounted all forum stats.  But that did not help.

What can I do (and how as I am unfamiliar with MYsql admin stuff) inside of MYsql to empty out unimportant things. 

Thanks for any help.

Skhilled

You can limit the amount of pm's users can have, limit the size of images, avatars, and attachments...also maybe use offline services like imageshack instead of hosting the images on your server.

A link to your site might shed some light.

IchBin

What is growing in the tables for TP?

Nokonium

My board had a problem like this, an uncompressed sql file was over 250MB. We found that one database table [your SMF prefix]_sessions, was huge. What it appeared to contain was mostly session info from spiders. We emptied the table and no members complained, so we now empty it regularly.

Skhilled


bloc

Also, check the error log. If its has many entries, removing those will help too.

In general, use the maintenace controls, empty "unimportant data" regularly and empty error log often(if its anything in them).

The biggest table usually though, is the messages table..and thats harder to shrink lol. :)

insanemustang

Weird, without doing anything inside of MySQL, my table shrunk 18 MB just from doing forum maintenance.   Thanks for all of the replies, that helped alot.

And just incase anyone could get anymore suggestions from my website, it is http://www.bamanation.net

Thanks guys.

knat

#7
how do i empty the session table ? And is it safe to do so ?  ::)

I dont know how big this table is but when i use forum maintanence this table is always the one with most Kb optimized ?? I dont even know why i use database driven sessions.. i think someone said it was the best thing to use ??

Edit: Just found my way into phpmyadmin and the session table is not very big at all.. i guess forum maintenence empty this board alright.. great  :)

My biggest tables are SMF_Messages and SMF_log_topics So i guess everything is cool  :coolsmiley:

Nokonium

The sessions problem doesn't happen on all servers. When Our-Local.co.uk was hosted on a 1&1 server we didn't have a problem, the problem started when we moved to another host.

This website is proudly hosted on Crocweb Cloud Website Hosting.