Link to home
Start Free TrialLog in
Avatar of marathonconsulting
marathonconsulting

asked on

After MySQL dump and import into new instance, all views now tables.

MySQL newbie here just wondering if this is expected behavior or not.

Essentially needed to create a mirrored instance of an existing MySQL database. Ran a full mysqldump, moved the dump file to the new server and imported everything just via mysql < dumpfile.

Now, according to those working with the data, all views have become regular tables. Is this standard? Is there a way to create the dump file (or a way to import it) to ensure that this doesn't happen?

Thanks in advance, SQL wizards!
Avatar of arnold
arnold
Flag of United States of America image

See if the below article answers your questions.
http://dbaspot.com/forums/mysql/371033-mysqldump-view-definitions.html

Do the two servers have a continuous dedicated connection where you can define one as a slave replica to the other??
Check the end of the dump file to see whether there are alter table to view statements.

Which version of mysql server and mysql utils are you using?


Avatar of Orcen
Orcen

If both servers have the same mysql version what you can do is sync the content of the database from your server A to server B.

Something like:

rsync -av yourdatabase/ yournewserver/database/
ASKER CERTIFIED SOLUTION
Avatar of marathonconsulting
marathonconsulting

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marathonconsulting

ASKER

None of the offered solutions resolved our need.