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 6125707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:16:43+00:00 2026-05-23T16:16:43+00:00

I use the mysqldump to make a backup of my database. My database was

  • 0

I use the mysqldump to make a backup of my database.
My database was destroyed by an accident and now I want to restore it.
But the SQL file is double encoded by bug#28969.
http://bugs.mysql.com/bug.php?id=28969
Is there any solution for my data to go back?
I only have the SQL file made by mysqldump.
Thanks.


I got my data back. Thanks everyone.

By this way,

1.import the messy data

2.use sqldump as ‘mysqldump -h “$DB_HOST -u “$DB_USER” -p”$DB_PASSWORD” –opt –quote-names –skip-set-charset –default-character-set=latin1 “$DB_NAME” > /tmp/temp.sql’

Reference

http://pastebin.com/iSwVPk1w

  • 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-05-23T16:16:44+00:00Added an answer on May 23, 2026 at 4:16 pm

    I got my data back. Thanks everyone.

    By this way,

    1.import the messy data

    2.use sqldump as mysqldump -h "$DB_HOST -u "$DB_USER" -p"$DB_PASSWORD" --opt --quote-names --skip-set-charset --default-character-set=latin1 "$DB_NAME" > /tmp/temp.sql

    Reference

    #!/bin/bash -e
    
    DB_HOST="$1"
    DB_USER="$2"
    DB_PASSWORD="$3"
    DB_NAME="$4"
    
    
    mysqldump -h "$DB_HOST -u "$DB_USER" -p"$DB_PASSWORD" --opt --quote-names \
        --skip-set-charset --default-character-set=latin1 "$DB_NAME" > /tmp/temp.sql
    
    mysql -h "$DB_HOST" -u "$DB_USER" -p"$DB_PASSWORD" \
        --default-character-set=utf8 "$DB_NAME" < /tmp/temp.sql
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i use mysqldump to backup and restore database to a remote server?
I'm trying to use mysqldump to dump a database, but I'm getting an error:
I can use this command mysqldump -uroot myDB| gzip > mydb_`date +%d-%m-%Y`.sql.gz but when
I use two different ways to backup my mysql database. mysqldump with --all-databases is
I use the mysqldump tool to create dumps of my database, e.g. mysqldump database
use C#,want to upload excel file on google doc. bellow syntax use to upload
I write some code with PHP to backup database. Here my code: exec(mysqldump --opt
I use mysqldump to automatically dump all my databases to a text file and
Im trying to use mysqldump like below: mysqldump -hlocalhost -uadmin -padmin shop> D:\b2\shop3.sql When
I need to do a mysqldump of a database on a remote server, but

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.