微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ubuntu 14.04 install Mysql 5.6

  1. remove all MysqL

    • $ sudo apt-get autoremove –purge MysqL*
    • $ sudo rm -rf /var/lib/MysqL/
    • $ sudo rm -rf /etc/MysqL/
  2. install MysqL

    • $ sudo apt-get update
    • $ sudo apt-get build-dep MysqL-server-5.6
    • $ sudo apt-get install MysqL-server-5.6

normally Error:

start: Job Failed to start
invoke-rc.d: initscript MysqL,action “start” Failed.
dpkg: error processing package MysqL-server-5.6 (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up libhtml-template-perl (2.95-1) …
Setting up MysqL-common-5.6 (5.6.16-1~exp1) …
Processing triggers for libc-bin (2.19-0ubuntu6) …
Processing triggers for ureadahead (0.100.0-16) …
Errors were encountered while processing:
MysqL-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solutions:

The problem you are having looks the same as this bug report. The failure to start seems to be because the default MysqL 5.6 configuration requires more memory than it can get in your micro instance.
The solution to the error appears to be to do one of the following:

  • Increase the amount of memory in your EC2 instance
  • Set a smaller value for MysqL’s max_connections variable

Reference:http://askubuntu.com/questions/457923/why-did-installation-of-mysql-5-6-on-ubuntu-14-04-fail/457932#457932

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐