gpt4 book ai didi

mysql - 我的 mysql "my.conf"应该是什么样子?

转载 作者:行者123 更新时间:2023-11-29 15:44:03 27 4
gpt4 key购买 nike

我正在尝试在 Linux 虚拟机中安装knowage。要安装knowage,我必须安装mysql。

当我安装 mysql 时,我遇到了这个典型的错误,我发现它无法以任何方式解决。

Errors were encountered while processing:
mysql-server-5.7
mysql-server

当我尝试命令 service mysql -status 时,它告诉我:

Can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock''

该目录不存在,因此在互联网上查找时,我通过修改文件 my.conf 找到了解决方案,但该文件看起来不像其他人的示例。

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

我不知道这能解决我的问题,但这让我头疼。主要问题是由于mysql安装错误,无法安装knowage。

非常感谢!

最佳答案

您是否尝试过迁移到另一个数据库,Knowage 可以选择支持不同类型的数据库? Install Knowage-Server from release package

另一方面,如果您不想更改它,请阅读此页面,它可能会对您有所帮助。 how to install mariadb on debian 9

关于mysql - 我的 mysql "my.conf"应该是什么样子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57268097/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com