Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Dumping a "scrubbed " version of the database? Views?

Dumping a "scrubbed " version of the database? Views?

2005-08-23       - By Eric Raymond

 Back
Reply:     1     2  

For testing purposes we like to get a copy of the database with
sensitive information removed or with it replaced by placeholders.

The way we do this now is to make a copy of the database (dump the
database table structure,  create  a temp database, dump the data and
load in the data into he temp db), run some SQL on the temp database
which scrubs the sensitive information, and then dump the database
again.  The dumping and loading of data is not very efficient.

It strikes me that views would be a perfect way to handle this, but I
suspect that if you mysqldump a view, you just get it's definition.  Is
there a way to dump the results of a view as a pseudo table?

--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/java?unsub=mysql@(protected)