首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu上安装MySQL

在Ubuntu上安装MySQL
EN

Ask Ubuntu用户
提问于 2016-10-11 10:13:31
回答 1查看 926关注 0票数 1

我试图在ubuntu16.04上安装MySQL。我看过这里的各种帖子和服务器故障,试图解决这个问题,但它仍然存在。

我使用以下方法安装了MySQL:

代码语言:javascript
复制
sudo apt-get install mysql-server

然后,在设置根密码之后,安装就挂起了:

代码语言:javascript
复制
Renaming removed key_buffer and myisam-recover options (if present)

我已经清除和重新启动了,没有运气。

代码语言:javascript
复制
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..
EN

回答 1

Ask Ubuntu用户

发布于 2016-10-11 10:19:16

摘自启动板

代码语言:javascript
复制
[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.
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/835613

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档