Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not a Bug
-
Affects Version/s: 10.1.4
-
Fix Version/s: N/A
-
Component/s: Encryption, Plugins
-
Labels:None
Description
I don't see how to install file_key_management plugin at runtime.
The plugin init requires file_key_management_filename variable to be set, and to set the variable one needs the plugin.
The part about file_key_management_filename being mandatory is documented, so I assume the whole thing is intentional. However, it would be nice to produce a better error message. Now it looks like this:
MariaDB [test]> install soname 'file_key_management';
ERROR 29 (HY000): File '' not found (Errcode: 2 "No such file or directory")
and the error log says
150411 19:28:06 [ERROR] Plugin 'file_key_management' init function returned error. 150411 19:28:06 [ERROR] Plugin 'file_key_management' registration as a ENCRYPTION failed.
Both are not very helpful.
Probably the best would be to say that the plugin cannot be installed at runtime, but I don't know if it's possible.
Also, if it's not installable at runtime, it should be documented.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-8262 file_key_management plugin install error
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
A plugin can perfectly well be installed at run-time. You either add --loose-file-key-management-filename to my.cnf before you started the server (note the loose- prefix). Or you add --file-key-management-filename to my.cnf after the server is started. Then you can install the plugin just fine.