MySQL keyring_file 在 WAMP64 MySQL 5.7.19 上未找到(错误代码:13 - 权限被拒绝)

MySQL keyring_file not found (Errcode: 13 - Permission denied) on WAMP64 MySQL 5.7.19

我是 运行 WAMP64,在 Windows 10(开发机器)上,MySQL 5.7.19。我已经安装了 keyring_file 插件。 MySQL 启动,但未找到 keyring_file,因此出现以下错误:

[ERROR] Plugin keyring_file reported: 'File 'C:/wamp64/bin/mysql/mysql5.7.19/lib/plugin/keyring_file.dll' not found (Errcode: 13 - Permission denied)' [ERROR] Plugin keyring_file reported: 'keyring_file initialization failure. Please check if the keyring_file_data points to readable keyring file or keyring file can be created in the specified location. The keyring_file will stay unusable until correct path to the keyring file gets provided'

文件位于指定路径:

My.ini 包括:

加载变量:

插件似乎加载:

并且 mysql 服务具有本地系统权限:

我尝试过卸载并重新安装插件,对 keyring.dll 文件授予更广泛的权限,当然我在每次测试后都重新启动了 MySQL 服务。

所以我的问题是为什么我会收到 Errcode 13,权限被拒绝?我在这里错过了什么?谢谢。

问题是您为 keyring_file_data 变量指定了 .dll 文件,而不是用于密钥环的文件位置。它应该是这样的:

keyring_file_data=C:/some/path/to/keyring

https://dev.mysql.com/doc/refman/5.7/en/keyring-file-plugin.html