Solved

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

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Creating and Managing Databases with phpMyAdmin in cPanel.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

23 Experts available now in Live!

Get 1:1 Help Now