MySQL密钥环问题

时间:2018-06-28 13:25:36

标签: mysql database windows

我是MySQL的新手,我正在尝试在MySQL Community 8.0.11上安装密钥环。

我正在使用Windows,并使用

编辑了my.ini文件。
[mysqld]
early-plugin-load=keyring_file.dll

然后我跑了

mysql> install plugin keyring_file soname 'keyring_file.dll';

我得到警告

       +---------+------+------------------------------------------------------------     --------------------------------+
| Level | Code | Message |
    +---------+------+--------------------------------------------------------------------------------------------+
| Warning | 29 | File 'C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin' not found (OS errno 13 - Permission denied) |
+---------+------+--------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

我检查它是否处于活动状态,并且

mysql> SELECT PLUGIN_NAME, PLUGIN_STATUS
-> FROM INFORMATION_SCHEMA.PLUGINS
-> WHERE PLUGIN_NAME LIKE 'keyring%';

该插件处于活动状态。

但是当我尝试用修改表时

mysql> ALTER TABLE example ENCRYPTION='Y';
ERROR 3185 (HY000): Can't find master key from keyring, please check keyring
plugin is loaded.

我不明白我想念的东西。

plugin_dir是正确的 (C:\ Program Files \ MySQL \ MySQL Server 8.0 \ lib \ plugin)

和keyring_file_data相同!

0 个答案:

没有答案