Activity Stream
48,167 MEMBERS
6288 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9
  1.     
    #1
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net

    Default mysql auto repair table upon crash

    many times, i see my forum down due to corrupted table, mostly the session table.

    is there anyway to automatically repair tables when they are detected/marked as corrupted?
    tdsii Reviewed by tdsii on . mysql auto repair table upon crash many times, i see my forum down due to corrupted table, mostly the session table. is there anyway to automatically repair tables when they are detected/marked as corrupted? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    What forum script are u using

  4.     
    #3
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    problem happened in both ipb and vb and both in session table. remember session table is memory and on vps we always have memory issues.

  5.     
    #4
    Respected Developer
    Website's:
    wrzc.org
    Sounds to me like your looking for a pump to remove water from a leak. Would the obvious thing not be to fix the leak and cause of the problem?

    Remove some memory heavy functions or upgrade your server. Relying on a script to repair corrupted tables is a bad idea.
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  6.     
    #5
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    your correct, but nothing much i can do with 512ram of memory on a heavy site

  7.     
    #6
    Respected Member
    I would suggest putting the sessions back to MyIsam from memory. That works well if you have a lot of memory and a large number online.

    But it will crash a lot on a vps with minimal memory. That is why IPB made it using MyIsam in the first place.

  8.     
    #7
    Member
    Quote Originally Posted by tdsii View Post
    your correct, but nothing much i can do with 512ram of memory on a heavy site
    Add some more RAM the problem will be solved

  9.     
    #8
    Member
    an loop
    CHECK TABLE foreach table msg !=ok repair, optimize

    or
    PHP Code: 
    $alltables mysql_query("SHOW TABLES");
    while (
    $table mysql_fetch_assoc($alltables))
    {
       foreach (
    $table as $db => $tablename)
       {
           
    mysql_query("OPTIMIZE TABLE '".$tablename."'")
               or die(
    mysql_error());
               echo 
    $tablename." Opmizide<br />";
       }
          foreach (
    $table as $db => $tablename)
       {
           
    mysql_query("REPAIR TABLE '".$tablename."'")
               or die(
    mysql_error());
               echo 
    $tablename." Repaired<br />";
       }



  10.     
    #9
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    jomasaco thanks for the code

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to repair all MySQL databases on a server in one go
    By Albert.Nawaro in forum Tutorials and Guides
    Replies: 0
    Last Post: 9th Feb 2012, 12:02 PM
  2. mySQL Memory Table problems.
    By TechPro in forum Technical Help Desk Support
    Replies: 2
    Last Post: 31st Oct 2011, 09:11 AM
  3. "-" sign on mySQL table value , Information needed!
    By TechPro in forum Webmaster Discussion
    Replies: 0
    Last Post: 26th Sep 2011, 06:47 AM
  4. mysql table corrupted vb4
    By themude in forum vBulletin
    Replies: 17
    Last Post: 21st Sep 2010, 12:42 PM
  5. HINT: Visually view a mysql table
    By litewarez in forum Tutorials and Guides
    Replies: 1
    Last Post: 22nd May 2009, 02:30 PM

Tags for this Thread

BE SOCIAL