首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dpkg: invoke rc.d: initscript mysql,操作"start“失败

dpkg: invoke rc.d: initscript mysql,操作"start“失败
EN

Ask Ubuntu用户
提问于 2013-02-25 21:10:07
回答 6查看 52K关注 0票数 20

我在这里阅读了许多帖子,它们都声明运行以下命令:

  1. Apt-获取-f删除**
  2. apt-获取更新
  3. apt升级
  4. apt-获取-f安装**

我看过这些不同的顺序等等,但没有人能解决我的问题。无论我如何努力,我都会得到:

代码语言:javascript
复制
 apt-get -f install mysql-server                              Reading package 
lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/14.9 MB of archives.
After this operation, 53.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-core-5.5.
(Reading database ... 83134 files and directories currently installed.)
Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.29-
0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package mysql-server-5.5.
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.29-0ubuntu0.12.04.1_amd64.deb) 
...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.29-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ...
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ...
invoke-rc.d: initscript mysql, action "start" failed.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 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 mysql-server (--configure):
No apport report written because the error message indicates its a followup error from a 
No apport report written because the error message indicates its a followup error from a 
previous failure.
                   Errors were encountered while processing:
 mysql-server-5.5
 mysql-server

在过去的一周里,我已经尝试过几件事情,但无法解决,任何帮助都将不胜感激。我确实注意到了这条消息:

软件包mysql-server-5.5尚未配置。

我还没有得到这方面的配置,所以我正在做这方面的工作。任何其他援助都将不胜感激。

EN

回答 6

Ask Ubuntu用户

发布于 2013-07-22 19:00:17

泰坦尼克号的解决方案对我有用。范围

代码语言:javascript
复制
dpkg -S etc/mysql

要看到mysql的共性才是问题所在。完全删除了MySQL:

代码语言:javascript
复制
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
票数 40
EN

Ask Ubuntu用户

发布于 2015-01-31 16:34:34

我以前有过这个问题。MySQL守护进程将在配置包后立即启动,如果MySQL配置中有任何错误或访问数据目录出现问题,则作业将失败。

在这种情况下,在MySQL上检查/var/log/mysql/error.log错误日志可以帮助您。

在我的例子中,由设备造成的访问错误:

代码语言:javascript
复制
150131 19:38:23  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.

并通过编辑适当的设备文件解决了问题。

票数 1
EN

Ask Ubuntu用户

发布于 2016-09-20 04:49:55

我的问题是,我把/tmp系统链接到其他地方,而Apparmor不喜欢它。

编辑/etc/apparmor.d/abstractions/user-tmp并向/tmp添加真正的路径,修复了它,并允许MySQL成功启动。

(灵感之源)

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/261250

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档