V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
yanest
V2EX  ›  VPS

搬瓦工的 64M 内存装不上 mysql 吗?

  •  
  •   yanest · 2015-05-16 12:37:45 +08:00 · 646 次点击
    这是一个创建于 3468 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Setting up mysql-server-5.5 (5.5.43-0ubuntu0.14.04.1) ...
    debconf: unable to initialize frontend: Dialog
    debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
    debconf: falling back to frontend: Readline
    150516 0:31:34 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
    150516 0:31:34 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0ubuntu0.14.04.1) starting as process 806 ...
    Configuring mysql-server-5.5
    ----------------------------

    Unable to set password for the MySQL "root" user

    An error occurred while setting the password for the MySQL administrative user.
    This may have happened because the account already has a password, or because of
    a communication problem with the MySQL server.

    You should check the account's password after the package installation.

    Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for more
    information.

    start: Job failed to start
    invoke-rc.d: initscript mysql, action "start" failed.
    dpkg: error processing package mysql-server-5.5 (--configure):
    subprocess installed post-installation script returned error exit status 1
    Setting up libhtml-template-perl (2.95-1) ...
    dpkg: dependency problems prevent configuration of mysql-server:
    mysql-server depends on mysql-server-5.5; however:
    Package mysql-server-5.5 is not configured yet.

    dpkg: error processing package mysql-server (--configure):
    dependency problems - leaving unconfigured
    Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
    Errors were encountered while processing:
    mysql-server-5.5
    mysql-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@localhost:~#
    5 条回复    2015-05-17 12:58:55 +08:00
    kkxh
        1
    kkxh  
       2015-05-16 13:30:23 +08:00
    我也遇到这个问题,会不会是因为内存太少了,干脆换个OS再来试试
    tpxcer
        2
    tpxcer  
       2015-05-16 13:40:11 +08:00
    那么小就不要装了
    yanest
        3
    yanest  
    OP
       2015-05-16 14:18:36 +08:00
    @kkxh 我试了,centos6能安装上,debian和ubuntu 不知道为啥安装不上
    yanest
        4
    yanest  
    OP
       2015-05-16 14:19:47 +08:00
    @kkxh 不过centos安装的版本是5.1,
    msg7086
        5
    msg7086  
       2015-05-17 12:58:55 +08:00
    @yanest 新版默认引擎是innodb,需要的内存提交量很大,因此你有两个选择
    1. 打开内核的overcommit,然后祈祷自己内存不会爆
    2. 修改mysql.cnf把默认引擎改成myisam后关闭innodb,然后再完成安装

    家用电脑用64M内存的年代要追溯到20年前了,你不能总指望现代的大型软件还能在20年前的主机上正常运行吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1060 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:43 · PVG 03:43 · LAX 11:43 · JFK 14:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.