之前,MySQL 使用服务器端插件启用了屏蔽和去识别功能,但过渡到使用组件基础设施作为替代实现。下表简要比较了 MySQL Enterprise Data Masking 和 De-Identification 组件以及插件库,以概述它们的差异。它可以帮助您从插件过渡到组件。Previously, MySQL enabled masking and de-identification capabilities using a server-side plugin, but transitioned to use the component infrastructure as an alternative implementation. The following table briefly compares MySQL Enterprise Data Masking and De-Identification components and the plugin library to provide an overview of their differences. It may assist you in making the transition from the plugin to components.
一次只能启用数据屏蔽组件或插件。不支持同时启用组件和插件,结果可能不会达到预期。Only the data-masking components or the plugin should be enabled at a time. Enabling both components and the plugin is unsupported and results may not be as anticipated.
表 8.45 数据掩码组件与插件元素的比较Table 8.45 Comparison Between Data-Masking Components and Plugin Elements
| 类别Category | 组件Components | 插件Plugin |
|---|---|---|
| 接口Interface | 服务功能,可加载功能Service functions, loadable functions | 可加载功能Loadable functions |
| 支持多字节字符集Support for multibyte character sets | 是,适用于通用屏蔽功能Yes, for general-purpose masking functions | 否No |
| 通用屏蔽功能General-purpose masking functions | mask_inner(),
mask_outer() |
mask_inner(),
mask_outer() |
| 特定类型的掩码Masking of specific types | PAN, SSN, IBAN, UUID, 加拿大 SIN, 英国 NINPAN, SSN, IBAN, UUID, Canada SIN, UK NIN | PAN,社会保障号码PAN, SSN |
| 随机生成,特定类型Random generation, specific types | 电子邮件,美国电话,PAN, SSN, IBAN, UUID, 加拿大 SIN, 英国 NINemail, US phone, PAN, SSN, IBAN, UUID, Canada SIN, UK NIN | 电子邮件,美国电话,PAN, SSNemail, US phone, PAN, SSN |
| 从给定范围随机生成整数Random generation of integer from given range | 是Yes | 是Yes |
| 持久化替换字典Persisting substitution dictionaries | 数据库Database | 文件File |
| 管理字典的权限Privilege to manage dictionaries | 专用权限Dedicated privilege | 文件FILE |
| 在安装/卸载期间自动注册/注销可加载函数Automated loadable-function registration/deregistration during installation/uninstallation | 是Yes | 否No |
| 现有功能的增强Enhancements to existing functions | 向 gen_rnd_email() 函数添加了更多参数More arguments added to the
gen_rnd_email() function |
不适用N/A |