Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 10.0.20
-
Fix Version/s: N/A
-
Component/s: Scripts & Clients
-
Labels:None
-
Environment:Debian Jessie X64
Description
When doing a full DB dump with mysqldump some tables are dumped regardles of their appearance in --ignore-table.
/usr/bin/mysqldump --defaults-file=/etc/mysql/mydump.cnf -u<user> -p<password> --add-locks --extended-insert --add-locks --add-drop-database --add-drop-table --single-transaction --routines --triggers --all-databases --all-tablespaces --allow-keywords --complete-insert --create-options --events --dump-date>/root/db.sql
cat /etc/mysql/mydump.cnf
[mysqldump] ignore-table=mysql.general_log ignore-table=mysql.slow_log
Still contains the two tables, other mysql.* tables can be ignored, worse in some cases it also contains the drop statement which causes an import to fail! (when dumping the whole server the export includes "/!40000 DROP DATABASE IF EXISTS `mysql`/;" which breaks if we attempt to import it).
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-4875 Can't restore a mysqldump if --add-drop-database meets general_log
-
- Open
-
- links to
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Michiel Hazelhof, hi,
could you please clarify the last part of the description:
What are "some cases", which DROP statement you are talking about (is it DROP DATABASE which you quoted later, or something else?), and how exactly does it make the import to fail?
Thanks.