服务器版本不兼容安装apc

时间:2013-08-20 10:41:36

标签: php mysql apache2 ubuntu-12.04 apc

我的服务器在尝试安装apc时已经崩溃了。 / var / log / syslog sais:

Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23765]: Upgrading MySQL tables if necessary.
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Looking for 'mysql' as: /usr/bin/mysql
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Error: Server version (5.5.31-0ubuntu0.12.04.2) does not match with the version of
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: the server (5.5.32) with which this program was built/distributed. You can
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: use --skip-version-check to skip this check.
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: FATAL ERROR: Upgrade failed
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23793]: Checking for insecure root accounts.
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23798]: Triggering myisam-recover for all MyISAM tables
你能帮帮我吗? 这已发布在serverfault.com,但没人在看帖子......

2 个答案:

答案 0 :(得分:0)

APC并非构建在您的计算机上,而您似乎正在为二进制文件使用不兼容的存储库。您可以自己构建APC(从http://pecl.php.net/package/APC下载源代码并在http://svn.php.net/viewvc/pecl/apc/trunk/INSTALL?view=markup之后编译)或使用PECL为您执行此操作(如果已安装)。

sudo pecl install apc

答案 1 :(得分:0)

重新安装VPS对我来说是解决它的唯一方法。