Ubuntu 中的 MySQL 尝试使用 systemctl 启动服务

标签 mysql ubuntu-12.04 upstart

我在 Ubuntu 中使用 MySQL 已经很长时间了,但是昨天,从晴朗的蓝色开始,服务器无法启动。它失败并显示以下消息:

2013-12-20 10:03:28 - Executting '/bin/systemctl start mysqld'
2013-12-20 10:03:28 - Start server: /bin/bash: /bin/systemctl: File or Folder
2013-12-20 10:03:28 - Start server: not found.

2013-12-20 10:03:28 - Checked server status: Server is stopped.
2013-12-20 10:03:29 - Server start done.
2013-12-20 10:03:29 - Checked server status: Server is stopped.

经过一番调查,我发现 systemctl 是 ( systemd ) 包的一部分,它不是 Ubuntu 12.04 中的默认值...默认值是 upstart。这就是我能找到的所有信息。

所以我脑子里的问题是: 1 - mysql 为何尝试使用不同的服务进行初始化?也许更新已经破坏了它? 2 - 如何告诉 mysql 服务器使用 upstart 来启动?

对此的任何帮助将不胜感激。

最佳答案

来自谷歌:http://upstart.ubuntu.com/还有一些手册页。加载 systemd 并与 upstart 并行使用它可能不是一个好主意,但尝试一下可能会很有趣。

关于Ubuntu 中的 MySQL 尝试使用 systemctl 启动服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20703556/

相关文章:

linux - Amazon Linux 2 AMI 无法使用 upstart 启动程序

mysql - 使用 sql SELECT nodejs

php - 到处注销,我在其他地方登录过

php - 如何在mysql中检索二进制文件数据作为转换后的字符?

linux - JADE 在代理调用时在 64 位 Linux 上执行时挂起

tomcat - Apache Tomcat7 无法在我的 Ubuntu Server 12.04 上运行

mysql - 查询多个表,包括具有空外键 MySQL 的行

Scala 2.9 无法在 Ubuntu 12.04 上运行 HelloWorld

java - 如何使用 upstart 正确启动 gradle 生成的脚本?

linux - upstart conf 文件等待进程