No cache version.


Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher dans le manuel MySQL

6.4.8.2 Installing or Uninstalling MySQL Enterprise Data Masking and De-Identification

This section describes how to install or uninstall MySQL Enterprise Data Masking and De-Identification, which is implemented as a plugin library file containing a plugin and user-defined functions (UDFs). For general information about installing or uninstalling plugins and UDFs, see Section 5.6.1, “Installing and Uninstalling Plugins”, and Section 5.7.1, “Installing and Uninstalling User-Defined Functions”.

To be usable by the server, the plugin library file must be located in the MySQL plugin directory (the directory named by the plugin_dir system variable). If necessary, configure the plugin directory location by setting the value of plugin_dir at server startup.

The plugin library file base name is data_masking. The file name suffix differs per platform (for example, .so for Unix and Unix-like systems, .dll for Windows).

To install the MySQL Enterprise Data Masking and De-Identification plugin and UDFs, use the INSTALL PLUGIN and CREATE FUNCTION statements (adjust the .so suffix for your platform as necessary):

  1. INSTALL PLUGIN data_masking SONAME 'data_masking.so';
  2. CREATE FUNCTION gen_blacklist RETURNS STRING
  3.   SONAME 'data_masking.so';
  4. CREATE FUNCTION gen_dictionary RETURNS STRING
  5.   SONAME 'data_masking.so';
  6. CREATE FUNCTION gen_dictionary_drop RETURNS STRING
  7.   SONAME 'data_masking.so';
  8. CREATE FUNCTION gen_dictionary_load RETURNS STRING
  9.   SONAME 'data_masking.so';
  10.   SONAME 'data_masking.so';
  11. CREATE FUNCTION gen_rnd_email RETURNS STRING
  12.   SONAME 'data_masking.so';
  13. CREATE FUNCTION gen_rnd_pan RETURNS STRING
  14.   SONAME 'data_masking.so';
  15. CREATE FUNCTION gen_rnd_ssn RETURNS STRING
  16.   SONAME 'data_masking.so';
  17. CREATE FUNCTION gen_rnd_us_phone RETURNS STRING
  18.   SONAME 'data_masking.so';
  19. CREATE FUNCTION mask_inner RETURNS STRING
  20.   SONAME 'data_masking.so';
  21. CREATE FUNCTION mask_outer RETURNS STRING
  22.   SONAME 'data_masking.so';
  23. CREATE FUNCTION mask_pan RETURNS STRING
  24.   SONAME 'data_masking.so';
  25. CREATE FUNCTION mask_pan_relaxed RETURNS STRING
  26.   SONAME 'data_masking.so';
  27. CREATE FUNCTION mask_ssn RETURNS STRING
  28.   SONAME 'data_masking.so';

If the plugin and UDFs are used on a master replication server, install them on all slave servers as well to avoid replication problems.

Once installed as just described, the plugin and UDFs remain installed until uninstalled. To remove them, use the UNINSTALL PLUGIN and DROP FUNCTION statements:

  1. UNINSTALL PLUGIN data_masking;
  2. DROP FUNCTION gen_blacklist;
  3. DROP FUNCTION gen_dictionary;
  4. DROP FUNCTION gen_dictionary_drop;
  5. DROP FUNCTION gen_dictionary_load;
  6. DROP FUNCTION gen_range;
  7. DROP FUNCTION gen_rnd_email;
  8. DROP FUNCTION gen_rnd_pan;
  9. DROP FUNCTION gen_rnd_ssn;
  10. DROP FUNCTION gen_rnd_us_phone;
  11. DROP FUNCTION mask_inner;
  12. DROP FUNCTION mask_outer;
  13. DROP FUNCTION mask_pan;
  14. DROP FUNCTION mask_pan_relaxed;
  15. DROP FUNCTION mask_ssn;

Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-data-masking-installation.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut