While me and Fred were presenting Inexpensive Datamasking for MySQL with
ProxySQL at FOSDEM 2017, we got a very interesting question:
can ProxySQL be used to obfuscate backups obtained from
mysqldump?
The short answer is yes!
Instead of dumping directly from MySQL Server, you can point
mysqldump to ProxySQL that will perform the
datamasking/obfuscation.
The dump file can then be used to provision new staging database
without using production data, and follow compliance
requirements.
This extremely simplify the "common" approach of dumping original
data and storing it in an not obfuscated format (not good for
compliance I believe), load the original data into a database,
and finally perform some obfuscating query (that can really take
a lot of time).
For this …
[Read more]