openEuler安装mariadb后进程查看有[ERROR] mysqld: Server GSSAPI错误

openEuler安装mariadb后

执行systemctl status mariadb查看有

Sep 26 09:57:44 bogon mysqld[18088]: 2021-09-26 9:57:44 0 [Warning] mysqld: GSSAPI plugin : default principal 'mariadb/bogon@' not>
Sep 26 09:57:44 bogon mysqld[18088]: 2021-09-26 9:57:44 0 [ERROR] mysqld: Server GSSAPI error (major 851968, minor 2529639093) : g>
Sep 26 09:57:44 bogon mysqld[18088]: 2021-09-26 9:57:44 0 [ERROR] Plugin 'gssapi' init function returned error.

原因是gssapi模块没有加载成功

解决方法:

方法1、gssapi是通用安全服务应用程序接口,如果你用不到这个接口,可以禁用这个模块

vim /etc/my.cnf.d/auth_gssapi.cnf

#plugin-load-add=auth_gssapi.so

方法2、补全模块路径

vim /etc/my.cnf.d/auth_gssapi.cnf

plugin-load-add=/usr/lib64/mariadb/plugin/auth_gssapi.so

蔚州2021.9.26

原文地址:https://www.cnblogs.com/surplus/p/15337249.html