我尝试在我的 Ubuntu vps 服务器上安装 mysql-server,它可以安装,但不能配置。如果它尝试配置,我会得到以下信息:
> ...fail!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人知道这个问题的解决办法吗?
顺便说一句,我的另一个问题可以关闭了,它已经解决了,但我不能再对其发表评论。
答案1
您可能中止了 mysql root 密码提示对话框。从终端运行以下命令:
sudo dpkg-reconfigure mysql-server-5.0
让我们知道结果,请更新您的问题或使用添加评论功能。