It was working fine before and I was configuring the mysql (via /etc/init.d/mysql restart). I'm pretty sure that I did not touch anything in there but I can remember doing a failed apt-get update prior to that.

Now my problem starts when all of a sudden it stops and won't even start. I searched on google and even went far to purging everything and doing a new install. But still it won't let me install mysql properly.

I've tried (after doing a remove --purge):

sudo apt-get install mysql-server-5.5 mysql-client-5.5

and it prompts me for a root passsword, but returns me the MySQL "root" user An error occurred while setting the MySQL administrative user. may happened the already has a password, or the MySQL server. You should check account's password after the /usr/share/doc/mysql-server-5.5/README.Debian file for more information.

and I the following logs too:

Selecting previously deselected package mysql-server-5.5.
(Reading database ... 117879 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ...
130830 14:13:26 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
start: Job failed to start
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
Errors were encountered while processing:
mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

any help? Thanks in advance.

2 Answers

the same issue it solved by uninstalling but before that he tried to set the question and then he tried to solve it in chat maybe when you try to set a password it will be solved , just try

Update: Type the /var/lib/mysql folder if exist by typing the official ubuntu documentation to install. and don't forget to set your mysql password during installation.

Also see the error you the installation process.

answered Sep 2 '13 at 3:55
Mostafa Hussein

2,24131234

I experienced have some config for package. I think this method is purge command . try running.

    1. check installed mysql package

      dpkg --get-selections|grep mysql

    2. remove

      apt-get remove --purge [installed package]
      apt-get autoremove
      apt-get autoclean
      aptitude purge [installed package]
      aptitude clean
      aptitude update
      aptitude -f install
      aptitude full-upgrade

    3. install

      apt-get install mysql-server

最新文章

  1. php获取网卡MAC地址源码
  2. HttpResponse的使用方法
  3. 【spring bean】 spring中bean之间的引用以及内部bean
  4. mysql触发器使用
  5. Codeforces Round #365 (Div. 2)-D Mishka and Interesting sum(树状数组)
  6. DPI 导致的问题
  7. cocos2d-x 3.0 利用python脚本在文件夹Classes内创建class
  8. java基础知识4
  9. mongoose查询特定时间段文档的方法
  10. copy算法
  11. vs2012常用快捷键总结
  12. Windows安装docker (带安装包)
  13. 给大家推荐8个SpringBoot精选项目
  14. 即时通讯协议之XMPP
  15. linux下NFS实战
  16. MySQL学习(七)
  17. TRIZ解决问题方法
  18. c#中引用类型作为值参数和引用参数问题
  19. Android之第三方平台实现多平台分享操作
  20. 使用wireshark出现Couldn't run /usr/bin/dumpcap in child process: Permission denied解决办法

热门文章

  1. CentOS-7-1804下MySQL安装及防火墙设置
  2. 浅析构造函数,及public、private、protected、final、this、super关键字
  3. tp备份数据
  4. python 保留字符
  5. CDN原理介绍(转)
  6. 移动端click事件无反应或反应慢 touchend事件页面滑动时频繁触发
  7. linux 搭建SVN服务端
  8. npm run dev的错误
  9. 电脑小知识-win10
  10. Where do I belong (freeCodeCamp)