문제

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!

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top