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

2015-05-16 12:37:45 +08:00
 yanest
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:~#
658 次点击
所在节点    VPS
5 条回复
kkxh
2015-05-16 13:30:23 +08:00
我也遇到这个问题,会不会是因为内存太少了,干脆换个OS再来试试
tpxcer
2015-05-16 13:40:11 +08:00
那么小就不要装了
yanest
2015-05-16 14:18:36 +08:00
@kkxh 我试了,centos6能安装上,debian和ubuntu 不知道为啥安装不上
yanest
2015-05-16 14:19:47 +08:00
@kkxh 不过centos安装的版本是5.1,
msg7086
2015-05-17 12:58:55 +08:00
@yanest 新版默认引擎是innodb,需要的内存提交量很大,因此你有两个选择
1. 打开内核的overcommit,然后祈祷自己内存不会爆
2. 修改mysql.cnf把默认引擎改成myisam后关闭innodb,然后再完成安装

家用电脑用64M内存的年代要追溯到20年前了,你不能总指望现代的大型软件还能在20年前的主机上正常运行吧。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/191510

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX