搬瓦工的 64M 内存装不上 mysql 吗? - V2EX
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 1207 次点击
    这是一个创建于 3881 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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     Solana     2971 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 13:34 PVG 21:34 LAX 05:34 JFK 08:34
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86