gpt4 book ai didi

mysql - 找不到MySQL数据目录: my. cnf不包含基本设置

转载 作者:行者123 更新时间:2023-11-29 20:18:37 27 4
gpt4 key购买 nike

我正在尝试按照 https://www.mkyong.com/mysql/where-does-mysql-stored-the-data-in-my-harddisk/ 上的说明进行操作。我在 etc/mysql 中找到了 my.cnf 文件,如示例所示,但令我惊讶的是它不包含任何基本设置,仅包含以下内容:

# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

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

我还期望带有 user =datadir = 等的行。MySQL 是否设置不正确?

最佳答案

已关注 Marc B的评论,我做了一些搜索,发现在 Askubuntu 上回答了同样的问题:https://askubuntu.com/questions/699903/why-etc-mysql-my-cnf-is-empty

重申一下,includedir 行表示可以在列出的目录中找到其他配置文件(本例中为 .cnf)。

关于mysql - 找不到MySQL数据目录: my. cnf不包含基本设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39598764/

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