New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot dump Clustrix tables #87
Comments
mydumper seems to think these tables are views. Which they are not.
|
I found the issue is here: https://github.com/maxbube/mydumper/blob/37aa06686dc9ca97abbb335f8bd4b354a9694d7c/mydumper.c#L1829 mydumper is looking at the "Comment" field to determine if the table is a view or not. In normal MySQL, this field is blank/empty string. But in Clustrix, this field is NULL and thus mydumper believes this normal InnoDB table is actually a view. By commenting out the line above and the one below it, I was able to get mydumper working on Clustrix. |
Clustrix:
|
MySQL 5.7
|
mydumper should check BOTH 'Engine' and 'Comment' columns to determine if a table is a view or not. |
Hi @utdrmac thanks for the detailed report!!!, I will take a look on this. |
Hi @utdrmac, So based on your comments in clustrix a view STS output is:
What about an Innodb table? Is it:
|
On Clustrix:
|
Percona Server 5.7
|
I asked @utdrmac and he was ok to close it, as he was able to workaround the issue. |
hey, we are having the same issue, how did you resolve it? |
@rookie7799 You are using Clustrix and are trying to use mydumper? Fix is in comment #3 above. |
Yep, and I saw that "fix" but I get "option parsing failed: Unknown option --defaults-file" |
|
--defaults-file is mysql client's parameter that you use to actually specify the my.cnf file - that's why I'm a bit confused here :) |
I'm attempting to dump a Clustrix database. This speaks MySQL protocol as it is based off of NDB. mydumper is skipping all 100s of tables. I believe the issue is because SHOW CREATE TABLE does not list ENGINE=InnoDB even though 'SHOW TABLE STATUS' lists all tables as InnoDB.
Even --trx-consistency-only still skips these tables.
How can I force mydumper to dump all tables regardless of engine type?
The text was updated successfully, but these errors were encountered: