mysql - 我的 mysql 的“my.conf”应该是什么样的?
问题描述
我正在尝试在 linux 虚拟机中安装知识。要安装知识,我必须安装 mysql。
当我安装 mysql 时,我得到了这个我发现的任何方式都无法解决的典型错误。
处理时遇到错误:
mysql-server-5.7
mysql-server
当我尝试命令 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。
太感谢了!
解决方案
您是否尝试迁移到另一个数据库,Knowage 可以选择支持不同类型的数据库?从发布包安装 Knowage-Server
另一方面,如果您不喜欢更改它,请阅读此页面,它可能会对您有所帮助。如何在 debian 9 上安装 mariadb
推荐阅读
- node.js - 如何使用带有许多请求的 Node mssql 修复“无法连接(序列)”
- kubernetes - 对于 Kubernetes 中的部署/升级后测试,测试的最佳触发器是什么
- regex - Ansible:lineinfile 不断压缩我现有的行而不是向其附加文本
- django - 防止 django 管理员更改创建 LogEntry
- java - NavigationDrawerActivity 与 BottomNavigationActivity
- python - 用一行上的某些字段格式化一些 JSON 对象?
- rust - 是否可以将元组结构构造函数传递给函数以返回不同类型的值?
- powershell - Ansible:如何处理 win_shell 变量的引号
- python - 检查给定的 wiki 页面是否存在
- sql-server - SSRS 如何获取订阅的运行时日志?