我正在运行Fedora 24并安装了MariaDB 15.1 Distrib 10.1.24-MariaDB 64位。我是非root用户,我想建立一个自己的数据库。所以,我按照答案中的说明进行了操作:
执行时
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
。还有什么我应该做的吗?我应该以某种方式禁用此插件吗?我会提到这不是一个生产环境,并且没有任何敏感数据会进入数据库,所以如果它有帮助,我可以在安全方面削减一些角落。
答案 0 :(得分:1)
一个简单的解决方法 - 禁用GSSAPI插件:
/path/to/mysql_install_db --gssapi=OFF
注意:请确保这与~/.my.cnf
或/etc/my.cnf
中的设置不冲突。