Jeg fik mine data tilbage. Tak til alle.
På denne måde,
1.importer de rodede data
2.brug sqldump som 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