我在 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/