Solved

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

Posted on 2010-08-12
4
350 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:marathonconsulting
  • 2
4 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 33425424
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?


0
 
LVL 2

Expert Comment

by:Orcen
ID: 33573270
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/
0
 

Accepted Solution

by:
marathonconsulting earned 0 total points
ID: 34263226
Resolved via xtra backup dump ultimately, but thanks for the responses.
0
 

Author Closing Comment

by:marathonconsulting
ID: 34290054
None of the offered solutions resolved our need.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now