2017-08-13 98 views
0

我正在運行Fedora 24並且安裝了MariaDB 15.1 Distrib 10.1.24-MariaDB 64位。我是非root用戶,我想創建一個我自己的數據庫。於是,我跟着答案說明:當做mysql_install_db作爲非root用戶時,MySQL gssapi插件呻吟和呻吟

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/[email protected]' 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/[email protected]' 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/[email protected]' 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

如果以root身份運行mysql_install_db,會做什麼更改? –

+0

@ VladislavVaintroub:我沒有在該機器上的根訪問權限。 – einpoklum

+0

好的,所以在描述中「非根」可能不一定是一個重要的細節? –

回答

1

簡單的解決方法 - 禁用GSSAPI插件:

/path/to/mysql_install_db --gssapi=OFF 

注:確保這不會與設置在~/.my.cnf/etc/my.cnf衝突。

相關問題