Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:50:05+00:00 2026-06-08T19:50:05+00:00

As I am not a coder so I should stop here but I am

  • 0

As I am not a coder so I should stop here but I am interested how far I could go to build an automatic SQL script.

Case:
A website is hosted on a shared host server which uses CPanel. The website use only one DB and one of the table is the log. Now the log table has reached 300k rows… (I might do something wrong here… it is a popular website?:))

So I need to reduce the log table but I would like to do a backup rather. So here is my idea:

Setup a backup DB and copy the old entries meanwhile use tables for only quarter years so the log from Jan-April would be stored in table_2012-q1 etc.

Method:

I would like to use cron and email alert.

Questions:

  1. is there any better and easier solution to do the back up with this row num.
  2. if I do a “move rows” by INSERT/DELETE rows how can I check which one is ready on time?
  3. do I need to focus on the performance of this process as it should work in the background? In other words is it a select or a dump?

Sorry if it is too Dummy but I would like to learn! I also don’t want to use too much processor for this.

Thanks Andras

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:50:08+00:00Added an answer on June 8, 2026 at 7:50 pm

    Since you are using shared hosting, I’m pretty sure you will not be able to access cron, so here is an alternative:

    Since the database is filled with log data :

    1. Create a new table, regardless of the name or time period
    2. Move the files (from a certain id) from one table to the next
    

    This link will explain better : mysqldump partial database

    If this is active DB, I would clone it and then play around with the ways the data will be moved since you do not consider youreself a coder.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know people complain usually about scripts not working, but here is a case
I'm not sure what I'm doing wrong, but two versions of code that should
My code looks fine but it is not working as it should because update
Okay I'm really not sure what I'm doing wrong here but the div is
I am trying to stop some events but stopPropagation does not work with live
I've got a fairly simple pagination algorithm here but it's not working the way
What should be straight forward is not here and I couldnt find a way
I know that c++ code should be compiled and linked by g++, not gcc.
I am looking out for some kind of short code where i should not
I just read in Code Complete that you should not use exceptions for flow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.