Solved

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

Posted on 2010-08-12
4
348 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

863 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

19 Experts available now in Live!

Get 1:1 Help Now