mysql 的 "my.conf" 应该是什么样的?
What should my "my.conf" for mysql look like?
我正在尝试在 linux 虚拟机中安装 knowage。要安装 knowage 我必须安装 mysql.
当我安装 mysql 时,我遇到了这个典型的错误,我无法用我找到的任何方法解决它。
Errors were encountered while processing:
mysql-server-5.7
mysql-server
当我尝试命令服务 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。
非常感谢!
您是否尝试迁移到另一个数据库,知智有支持不同类型数据库的选项? Install Knowage-Server from release package
另一方面,如果您不想更改它,请阅读此页面,它可能会对您有所帮助。 how to install mariadb on debian 9
我正在尝试在 linux 虚拟机中安装 knowage。要安装 knowage 我必须安装 mysql.
当我安装 mysql 时,我遇到了这个典型的错误,我无法用我找到的任何方法解决它。
Errors were encountered while processing:
mysql-server-5.7
mysql-server
当我尝试命令服务 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。
非常感谢!
您是否尝试迁移到另一个数据库,知智有支持不同类型数据库的选项? Install Knowage-Server from release package
另一方面,如果您不想更改它,请阅读此页面,它可能会对您有所帮助。 how to install mariadb on debian 9