0

I am using CMD to do a mysqldump. When I run the following command it works fine:

mysqldump -hmyhost -uroot -pmypass mydb 

The dump works just fine, however, when it is done, it seems that no .sql file is created for the mysql dump and it just outputs the db data to the screen.

So, I was trying to output the contents to a file using the following command:

mysqldump -hmyhost -uroot -pmypass mydb > C:/mypath/tofile/testdb_dump.sql

But get the following error:

mysqldump: Error: 'Table ' information_schema.files' doesn't exist when trying to dump tablespaces

I greatly appreciate any feedback as to how to resolve this error and backup the db to an .sql file.

Many thanks in advance!

1 Answer 1

3

Try mysql -u root -pmypass --opt mydb --no-tablespaces > C:\mypath\tofile\testdb_dump.sql

Sign up to request clarification or add additional context in comments.

7 Comments

Sorry. i wrote it wrong: mysqldump -u root -pmypass --opt mydb > C:\mypath\tofile\testdb_dump.sql
Thanks for the reply. Still getting the same error information_secham.files doesn't exist.
What MySQL version are you using?
In this link it says Verified as described: error happens when 5.1 or 5.5 mysqldump tries to backup from 4.1 server. Version 5.0 is not affected. Workaround: remove this error message from final dump.. Maybe it is the same problem.
Try adding --no-tablespaces.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.