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

  • SEARCH
  • Home
  • 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 9220241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:18:07+00:00 2026-06-18T03:18:07+00:00

We have a yesterdays full backup file(daily_3101013.sql) it’s size is 1TB . We are

  • 0

We have a yesterdays “full backup file(daily_3101013.sql)” it’s size is 1TB. We are taking full bakup by using Percona-XTRA BACKUP. So now I want one table backup/data from my full backup file(daily_3101013.sql)for restoring/import purpose.

encountering problem with restoring the table. The error you are getting is supposedly “Got error -1 from storage engine”.

How can I do that?

please help me here.

  • 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-18T03:18:08+00:00Added an answer on June 18, 2026 at 3:18 am

    I’ve created a bash script to spit a full DB dump to one SQL file per table.

    Checkout and download the gist Split MySQL dump SQL file into one file per table

    To extract a single table run mysql_splitdump.sh daily_3101013.sql mytable.

    #!/bin/bash
    
    ####
    # Split MySQL dump SQL file into one file per table
    # based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
    ####
    
    if [ $# -lt 1 ] ; then
      echo "USAGE $0 DUMP_FILE [TABLE]"
      exit
    fi
    
    if [ $# -ge 2 ] ; then
      csplit -s -ftable $1 "/-- Table structure for table/" "%-- Table structure for table \`$2\`%" "/-- Table structure for table/" "%40103 SET TIME_ZONE=@OLD_TIME_ZONE%1"
    else
      csplit -s -ftable $1 "/-- Table structure for table/" {*}
    fi
    
    [ $? -eq 0 ] || exit
    
    mv table00 head
    
    FILE=`ls -1 table* | tail -n 1`
    if [ $# -ge 2 ] ; then
      mv $FILE foot
    else
      csplit -b '%d' -s -f$FILE $FILE "/40103 SET TIME_ZONE=@OLD_TIME_ZONE/" {*}
      mv ${FILE}1 foot
    fi
    
    for FILE in `ls -1 table*`; do
      NAME=`head -n1 $FILE | cut -d$'\x60' -f2`
      cat head $FILE foot > "$NAME.sql"
    done
    
    rm head foot table*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a datestamp field in my table structure. using sql, i want to
Yesterday I have started developing my first Metro style App using JavaScript. I've used
I have been using a demo site since yesterday and made a version on
I have a git repository that I am using and I've screwed up. I
all of a sudden gwt components have stopped rendering after our yesterdays' deployment to
we have a database with distinct login for every employee. Full of triggers checking
I have been developing a number of components using TFrames and ModelMaker -- I've
I have a database in SQL Server 2008 R2 that has millions of files
After yesterdays poorly chosen question I'm trying again. I have a tic tac toe
I am trying to use the Get-Date cmdlet to get yesterdays date. I have

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.