My Oracle Support Banner

Using the keyring_file Plugin: Creating Encrypted InnoDB Table - ENCRYPTION = 'Y' - Fails With: "ERROR 3185 (HY000): Can't find master key from keyring, please check keyring plugin is loaded." (Doc ID 2106923.1)

Last updated on AUGUST 09, 2018

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Symptoms

When trying to create an InnoDB table using Transparent Data Encryption (TDE), the statement fails:

mysql> CREATE TABLE t1 (id int unsigned NOT NULL PRIMARY KEY) ENGINE=InnoDB ENCRYPTION='Y';
ERROR 3185 (HY000): Can't find master key from keyring, please check keyring plugin is loaded.

mysql> SHOW WARNINGS;
+-------+------+----------------------------------------------------------------------------+
| Level | Code | Message                                                                    |
+-------+------+----------------------------------------------------------------------------+
| Error | 3185 | Can't find master key from keyring, please check keyring plugin is loaded. |
| Error | 1112 | Table 't1' uses an extension that doesn't exist in this MySQL version      |
+-------+------+----------------------------------------------------------------------------+
2 rows in set (0.00 sec)

 

Depending on the cause of the issue (see below), the error log may contain an error like (logged during the last restart of MySQL):

2016-02-15T21:00:50.748029Z 0 [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'

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.