I have been trying to install the keyring_file.dll
of MySQL 5.7.26 plugin from WAMP 3.1.9 without success. It keeps me telling in the CMD Prompt:
ERROR 1123 (HY000): Can't initialize function 'keyring_file'; Plugin initialization function failed.
...and the MySQL log states:
[ERROR] Plugin keyring_file reported: 'File 'C:/Program Files/MySQL/MySQL Server 5.7/keyring\keyring' not found (Errcode: 2 - No such file or directory)'
Could somebody help me figure out what the root cause is?
-
Is this an upgrade? If so, did you run mysql_upgrade?Rick James– Rick James2020年01月05日 20:49:53 +00:00Commented Jan 5, 2020 at 20:49
-
Check the path to keyring in your my.cnf fileJesus Uzcanga– Jesus Uzcanga2020年01月29日 16:50:59 +00:00Commented Jan 29, 2020 at 16:50
2 Answers 2
The reason for that error is that mysql can't locate the keyring_file.dll file.
To fix that do the ff:
Edit the
my.ini
file located inC:\ProgramData\MySQL\MySQL Server 5.7\
and add the ff in the[mysqld]
block:early-plugin-load=keyring_file.dll keyring_file_data=C:/Program Files/MySQL/MySQL Server 5.7/lib/plugin/keyring_file
Restart the MySQL service:
net stop MySQL57 net start MySQL57
Validate that the keyring plugin is now active:
SELECT PLUGIN_NAME, PLUGIN_STATUS FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME LIKE 'keyring%';
- Ensure
early-plugin-load
andkeyring_file_data
options are located under and inside [mysqld] section and NOT others like [client]
Otherwise, settings are not loaded and fall back to use default setting.
For MySQL version 8:
- On Windows, ensure path separator is correct by using \