MySQL gssapi 插件在以非 root 身份执行 mysql_install_db 时发出呻吟声

MySQL gssapi plugin groans and moans when doing mysql_install_db as non-root

我是 运行 Fedora 24 并安装了 MariaDB 15.1 Distrib 10.1.24-MariaDB 64 位。我是非 root 用户,我想建立自己的数据库。所以,我按照以下答案中的说明进行操作:

当我执行

mysql_install_db --datadir=$HOME/dbfarms/mysql

它确实完成了,但给出了以下内容 warnings/errors(过滤掉时间戳):

[Warning] InnoDB: New log files created, LSN=45883
[Warning] InnoDB: Creating foreign key constraint system tables.
[Warning] mysqld: GSSAPI plugin : default principal 'mariadb/sofia.da.cwi.nl@' not found in keytab
[ERROR] mysqld: Server GSSAPI error (major 851968, minor 2529639093) : gss_acquire_cred failed -Unspecified GSS failure.  Minor code may provide more information. Keytab FILE:/etc/krb5.keytab is nonexistent or empty. 
[ERROR] Plugin 'gssapi' init function returned error.
OK
Filling help tables...

[Warning] mysqld: GSSAPI plugin : default principal 'mariadb/sofia.da.cwi.nl@' not found in keytab
[ERROR] mysqld: Server GSSAPI error (major 851968, minor 2529639093) : gss_acquire_cred failed -Unspecified GSS failure.  Minor code may provide more information. Keytab FILE:/etc/krb5.keytab is nonexistent or empty. 
[ERROR] Plugin 'gssapi' init function returned error.
OK
Creating OpenGIS required SP-s...

[Warning] mysqld: GSSAPI plugin : default principal 'mariadb/sofia.da.cwi.nl@' not found in keytab
[ERROR] mysqld: Server GSSAPI error (major 851968, minor 2529639093) : gss_acquire_cred failed -Unspecified GSS failure.  Minor code may provide more information. Keytab FILE:/etc/krb5.keytab is nonexistent or empty. 
[ERROR] Plugin 'gssapi' init function returned error.
OK

我显然无法控制/etc/krb5.keytab。还有什么我应该做的吗?我应该以某种方式禁用此插件吗?我会提到这不是生产环境,实际上没有任何敏感数据进入数据库,所以如果有帮助,我可以在安全方面走捷径。

一个简单的解决方法 - 禁用 GSSAPI 插件:

/path/to/mysql_install_db --gssapi=OFF

注意:确保这不会与您 ~/.my.cnf/etc/my.cnf 中的设置冲突。