[MDEV-32491] Mariadb-dump creates sql with NULLs in insert lines for CHAR columns Created: 2023-10-17  Updated: 2023-11-06  Resolved: 2023-11-06

Status: Closed
Project: MariaDB Server
Component/s: Backup
Affects Version/s: 11.1.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Tadas Balaišis Assignee: Sergei Golubchik
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Server OS: Win64


Attachments: File export heidi.sql     File maria-dmp2.sql     Text File mariadb-dump-help.txt     File mariadb-dump-mlf.sql    

 Description   

Mariadb-dump executed as root creates sql with corrupt content. Insert lines contain NULL instead of original values for CHAR columns.
Attachments show quote from HeidiSQL export (correct) and mariadb-dump (incorrect) for the same table.



 Comments   
Comment by Sergei Golubchik [ 2023-11-03 ]

this isn't a complete output of mariadb-dump. please show the complete output (of only one table, preferably, to have a smaller dump) and all mariadb-settings (the output of mariadb-dump --help)

Comment by Tadas Balaišis [ 2023-11-06 ]

D:\Program Files\MariaDB 10.5\bin>mariadb-dump -u root -p emcor MLF >e:\maria-dmp2.sql

Comment by Tadas Balaišis [ 2023-11-06 ]

Oh, sorry. I got my mistake. I used the binary from old (10.5) bin. Now I tried with correct (11.1) home bin and it went well. The dump was OK, varchar values were included correctly. Thanks.

Comment by Sergei Golubchik [ 2023-11-06 ]

I've tried to load your export heidi.sql into 11.2 and dump it with 10.5 mariadb-dump and it was dumped correctly.
Apparently, there's something I'm still missing to repeat this

Comment by Tadas Balaišis [ 2023-11-06 ]

DB is 11.1. And I tried to dump it with 10.5 mariadb-dump binary.
You helped me to realize my mistake. Close this issue please.

Comment by Sergei Golubchik [ 2023-11-06 ]

ok, as you like.

We'd still prefer if old mariadb-dump would be able to work with newer servers. But in my attempts to repeat this issue mariadb-dump worked, I failed to reproduce the problem. Thus, I'll close it as "Cannot Reproduce"

Thanks!

Generated at Thu Feb 08 10:31:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.