Qovery / Replibyte

Seed your development database with real data ⚡️
https://www.replibyte.com
GNU General Public License v3.0
4.17k stars 129 forks source link

Utf8Error on dump create #220

Closed charlyhue closed 2 years ago

charlyhue commented 2 years ago

Database: MariaDB Version: 10.5.15 Character set: Utf8mb4

Command cat dump.sql | replibyte -c replibyte.yaml dump create -i -s mysql return this error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 950246712, error_len: Some(1) }', /root/src/dump-parser/src/utils.rs:74:70

Dump Command:

mysqldump -h XXX -u XXX -p --add-drop-database --add-drop-table --skip-extended-insert --complete-insert --single-transaction --quick --column-statistics=0 --default-character-set=utf8mb4 db > dump.sql
evoxmusic commented 2 years ago

Hi @charlyhue , what's your operating system?

charlyhue commented 2 years ago

Hi @evoxmusic I'm on Macos 12.15.1 (arm). I have the same error on Amazon Linux 2.

charlyhue commented 2 years ago

Hi @evoxmusic, do you have any update?

sondrelg commented 2 years ago

Would it be possible to handle the error by continueing? This is the relevant line, note the fixme. I can submit a PR if you could confirm @evoxmusic - I'm also affect by this

evoxmusic commented 2 years ago

Hi, yes can you provide a PR and I will adjust if needed

sondrelg commented 2 years ago

PR ready 🙂