当mysql_install_db作为非root用户时,MySQL gssapi插件呻吟和呻吟

问题描述 投票:0回答:1

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

Mysql without root privilege

当我执行

mysql_install_db --datadir=$HOME/dbfarms/mysql

它完成,但提供以下警告/错误(过滤时间戳):

[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。还有什么我应该做的吗?我应该以某种方式禁用此插件吗?我会提到这不是一个生产环境,并且实际上没有任何敏感数据进入数据库,所以如果它有帮助,我可以安全地削减一些角落。

mysql installation mariadb gssapi
1个回答
1
投票

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

/path/to/mysql_install_db --gssapi=OFF

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

© www.soinside.com 2019 - 2024. All rights reserved.