我试图在ubuntu16.04上安装MySQL。我看过这里的各种帖子和服务器故障,试图解决这个问题,但它仍然存在。
我使用以下方法安装了MySQL:
sudo apt-get install mysql-server然后,在设置根密码之后,安装就挂起了:
Renaming removed key_buffer and myisam-recover options (if present)我已经清除和重新启动了,没有运气。
Oct 11 11:56:40 ip-172-31-47-249 systemd[1]: Started ACPI event daemon.
Oct 11 11:56:41 ip-172-31-47-249 systemd[1]: Starting MySQL Community Server...
Oct 11 11:56:45 ip-172-31-47-249 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Oct 11 11:57:07 ip-172-31-47-249 dhclient[895]: DHCPREQUEST of 172.31.47.249 on eth0 to 172.31.32.1 port 67 (xid=0x132b1603)
Oct 11 11:57:07 ip-172-31-47-249 dhclient[895]: DHCPACK of 172.31.47.249 from 172.31.32.1
Oct 11 11:57:08 ip-172-31-47-249 dhclient[895]: bound to 172.31.47.249 -- renewal in 1677 seconds.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Failed to start MySQL Community Server.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Unit entered failed state.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Failed with result 'exit-code'.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Stopped MySQL Community Server.
Oct 11 11:57:22 ip-172-31-47-249 systemd[1]: Starting MySQL Community Server..发布于 2016-10-11 10:19:16
摘自启动板:
[Workaround Option 1/3]
To reset your MySQL configuration back to defaults,
type "sudo update-alternatives --remove my.cnf /etc/mysql/my.cnf.migrated" after the upgrade.
Then use "sudo service mysql start" to start the MySQL daemon
and "sudo apt-get -f install" to recover your system packaging state.https://askubuntu.com/questions/835613
复制相似问题