0

I'm running Fedora 24 and have MariaDB 15.1 Distrib 10.1.24-MariaDB 64-bit installed. I'm a non-root user, and I want to set up a DB of my own. So, I followed the instructions in the answers to:

Mysql without root privilege

When I execute

mysql_install_db --datadir=$HOME/dbfarms/mysql

It does finish, but gives the following warnings/errors (filtering timestamps out):

[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

I can obviously not control /etc/krb5.keytab. Is there something else I should be doing? Should I disable this plugin somehow? I'll mention this is not a production environment, and there isn't really any sensitive data that's going into the DB, so I can cut some corners security-wise if it helps.

einpoklum
  • 118,144
  • 57
  • 340
  • 684

1 Answers1

2

A simple workaround - disable the GSSAPI plugin:

/path/to/mysql_install_db --gssapi=OFF

Note: make sure this doesn't conflict with settings in your ~/.my.cnf or /etc/my.cnf.

einpoklum
  • 118,144
  • 57
  • 340
  • 684