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!
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!
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/
Something like:
rsync -av yourdatabase/ yournewserver/database/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
None of the offered solutions resolved our need.
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?