【问题标题】:How to fix /usr/sbin/mysqld: unknown option '--daemonize'如何修复 /usr/sbin/mysqld:未知选项“--daemonize”
【发布时间】:2019-11-03 09:36:06
【问题描述】:

uograding 后,mariadb 未在 Ubuntu 18.04 上启动

日志文件说

/usr/sbin/mysqld: unknown option '--daemonize'

在命令行上启动 /usr/sbin/mysqld 可以工作

我使用的是 10.1.41 版本

mysql --version
mysql  Ver 15.1 Distrib 10.1.41-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

【问题讨论】:

    标签: service mariadb ubuntu-18.04 ubuntu-server


    【解决方案1】:

    与 MySQL 不同,不支持 MariaDB 中的 --daemonize 选项。 所以看起来,MySQL 被 MariaDB 取代,但配置文件没有正确更新。 尝试删除 /etc/systemd/system/mysql*.service 配置文件中的 daemonize 选项。

    【讨论】:

    • 然后向 Ubuntu 提交错误报告?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-12
    • 1970-01-01
    • 2021-04-07
    • 1970-01-01
    • 2017-02-07
    • 1970-01-01
    相关资源
    最近更新 更多