I have a mysql table, it has about 97 row and 5 columns of data.
I’d like to copy all this into a text file, then delete all the data, but leave the table intact. Whats the best way to do this in an automated way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
to save csv file you can run this query :
to delete all data from the table add this line
put it in a sql file and run it in a cron job, look on my link(point number 2) in the comments