首页 / MYSQL / mysql 安装不了的问题解决
mysql 安装不了的问题解决
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mysql 安装不了的问题解决,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2961字,纯文字阅读大概需要5分钟。
内容图文
![mysql 安装不了的问题解决](/upload/InfoBanner/zyjiaocheng/504/26067186de414a4d8076d9f09e01b65f.jpg)
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.
mysql ubuntu installation shareimprove ajib 172116 add a comment
2 Answers
active oldest votesup vote 2 down vote
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.
shareimprove Community? 11 answered Sep 2 ‘13 at 3:55up vote 2 down vote
I experienced have some config for package. I think this method is purge command . try running.
-
check installed mysql package
dpkg --get-selections|grep mysql
-
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 -
install
apt-get install mysql-server
mysql 安装不了的问题解决
标签:href containe account active select password des -- pkg
本文系统来源:https://www.cnblogs.com/musings/p/10058176.html
内容总结
以上是互联网集市为您收集整理的mysql 安装不了的问题解决全部内容,希望文章能够帮你解决mysql 安装不了的问题解决所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。