Ubuntu 14.04 install Mysql 5.6

前端之家收集整理的这篇文章主要介绍了Ubuntu 14.04 install Mysql 5.6前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. @H_301_2@remove all MysqL

    • $ sudo apt-get autoremove –purge MysqL*
    • $ sudo rm -rf /var/lib/MysqL/
    • $ sudo rm -rf /etc/MysqL/
  2. @H_301_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:

@H_301_2@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:

@H_301_2@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
@H_301_2@Reference:http://askubuntu.com/questions/457923/why-did-installation-of-mysql-5-6-on-ubuntu-14-04-fail/457932#457932

猜你在找的Ubuntu相关文章