【问题标题】:What should my "my.conf" for mysql look like?我的 mysql 的“my.cnf”应该是什么样的?
【发布时间】:2019-12-07 15:15:03
【问题描述】:

我正在尝试在 linux 虚拟机中安装知识。要安装知识,我必须安装 mysql。

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

处理时遇到错误:
mysql-server-5.7
mysql服务器

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

无法通过套接字'/var/run/mysqld/mysqld.sock''连接到本地mysql服务器

那个目录不存在所以在网上看,我通过修改文件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。

非常感谢!

【问题讨论】:

    标签: mysql file configuration fiware-knowage


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2015-12-09
      • 2017-12-14
      • 1970-01-01
      • 2013-01-27
      • 1970-01-01
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多