Export to SQL does not create view definitions but tables of the same name.

[expired user #7586]'s profile image [expired user #7586] posted 10 years ago in General Permalink
I need to export data and views from a database to another location. Tables are getting exported will, however views are created as tables. I am having version 8.2.0.4675.

Any ideas on how to solve this?
[expired user #7586]'s profile image [expired user #7586] posted 10 years ago Permalink
Resolved - I think i was doing something wrong.

Closed.
[expired user #8600]'s profile image [expired user #8600] posted 9 years ago Permalink
Hi Vikaskashikar,
I have the same problem, can you tell me how you solved this problem?

Thanks,
Martin
ansgar's profile image ansgar posted 9 years ago Permalink
Views are exported in two rounds. The first round exports views as ordinary tables with their columns, so there is no server error complaining about not yet existent tables or columns referenced by the view. The second round is done when all tables are created. The old tables are dropped and the real view is created.

mysqldump does it the same way, btw.

Please login to leave a reply, or register at first.