【问题标题】:cant make local database because Error: FIle/etc/my.cnf doesnt exist无法创建本地数据库,因为错误:文件/etc/my.cnf 不存在
【发布时间】:2023-04-01 04:59:01
【问题描述】:

我想在工作台上创建本地数据库,当我配置本地管理时,有人说

Check if /etc/my.cnf can be accessed
Operation failed: File /etc/my.cnf doesn't exist

所以我在终端上使用了这个选项

sudo cp my-huge.cnf /etc/my.cn

据说

cp: cannot stat 'my-huge.cnf': No such file or directory

当我检查我的支持文件时,它不是任何一个 my.cnf 文件,所以我只是困惑为什么我的 mysql 没有任何 my.cnf 文件。

【问题讨论】:

    标签: mysql mysql-workbench mysql-error-1064 my.cnf


    【解决方案1】:

    mysql 不包含 .cnf 文件,因为默认配置相当合理。

    当 my-huge.cnf 存在时,它是在 2000 年编写的,它的巨大定义从未改变过。 (~4 cpu 和~1G ram - 哈,当“巨大”还不够时,甚至还有一个巨大的 4G.cnf 文件)

    如果需要/etc/my.cnf 存在,请将其创建为空文件(例如touch /etc/my.cnf)。

    【讨论】:

    • 接下来我该怎么做?对不起,我没明白你说什么
    猜你喜欢
    • 2011-08-27
    • 2014-02-06
    • 1970-01-01
    • 2021-07-06
    • 2011-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-19
    相关资源
    最近更新 更多