我正在尝试在Linux虚拟机中安装知识。要安装知识,我必须安装mysql。
当我安装mysql时,我得到了一个典型的错误,无论如何我都无法解决。
处理时遇到错误:
mysql-server-5.7
mysql服务器
当我尝试使用命令服务mysql -status时,它会告诉我:
无法通过套接字'/var/run/mysqld/mysqld.sock连接到本地mysql服务器''
该目录不存在,因此在Internet上查找时,我已经找到了通过修改文件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安装错误,我无法安装知识。
非常感谢您!
答案 0 :(得分:0)
您是否尝试过迁移到另一个数据库,Knowage是否可以选择支持不同类型的数据库? Install Knowage-Server from release package
另一方面,如果您不希望更改它,请阅读此页面,它可能会对您有所帮助。 how to install mariadb on debian 9