mysql 安装不了的问题解决

MySQL Won‘t Install on Ubuntu 11.04

Ask Question

up vote 1 down vote favorite

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 votes

up 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:55

Mostafa Hussein

2,24131234

show 1 more comment

up vote 2 down vote

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

原文地址:https://www.cnblogs.com/musings/p/10058176.html

时间: 2024-10-22 14:40:54

mysql 安装不了的问题解决的相关文章

mysql安装及易出错问题解决

.双击.msi 安装包 2.勾选同意,下一步 3.一直 下一步,遇到弹窗选择ok,然后点击Execute 4.check  ok后点击下一步 5.next 6.设置root密码,next 7.无脑next后,来到易出错界面了 - -! (启动服务失败--解决方案:1.卸载完全之前安装的mysql,可能有残留文件导致服务不能启动 2. MySQL安装是出现could not start the service mysql error:0 提示错误,解决方法:  首 先,在管理工具->服务里面将My

redhat6.5安装cacti监控及安装过程中的问题解决

课题描述:在redhat系统中安装cacti这款通用的监控工具. 环境描述:我的客户端使用的win7的系统,通过putty远程登录Linux服务器 客户端IP:192.168.0.23,Linux服务器IP:192.168.0.56(使用的是内网) cacti原理:cacti本身是一个PHP脚本,它的所有功能都是由其插件完成的,cacti通过snmp协议与被监控主机取得通信,被监控主机的监控参数保存在cacti目录下的一个rra文件中,通过rrdtool这个工具定时地到这个文件中读取数据,然后做

Windows Server2008下MYSQL外网无法访问问题解决

这几天为俱乐部配置了个服务器,用作项目开发之用. 安装的是windows Server 2008 R2 操作系统 按照国际管理,安装了数据库 MYSQL 5.0. 一路顺利,可以通过外部连接MYSQL的时候出现了问题,无论如何也连接不上 发现这方面的资料很少,几经摸索,终于知道是防火墙的问题 解决方法如下: 选择:网络->windows 防火墙->高级设置->入站规则 然后点击右上角的新建规则 选择"端口" 下一步,输入3306端口,加入规则, 然后再次点击新建规则

mysql安装与多实例(详解)

mysql安装及多实例,配置优化 yum install tree nmap sysstat lrzsz dos2unix -y 安装相关的包tar -xf cmake-2.8.8.tar.gzcd cmake-2.8.8./configuremake && make install yum install gcc gcc-c++ autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool* openssl* 1.

Mysql——安装server错误:cannot create windows service

在安装到最后一步,点击”execute“按钮时,出现错误cannot create windows service for mysql.error:0 解决方法: 在桌面上找到“MyComputer“,右键选择“Manage”,然后选择”Service and Applications“,然后选择”services“,找到”MySQL“服务: 右键”Stop“此服务后.以管理员身份打开cmd:   输入命令:sc delete mysql 此命令是删除”MySQL“服务.刷新”services“

MySql基础学习-mysql安装

Linux环境下的安装 1检查是否已经安装 sudo service mysql start #若未安装,则提示: mysql: unrecognized service 2安装MySql #安装 MySQL 服务端.核心程序 sudo apt-get install mysql-server #安装 MySQL 客户端 sudo apt-get install mysql-client 安装过程中,提示确实yes即可,并且会提示设置root密码,设置即可. 3检查安装 sudo netstat

基于CentOS 7 的MySQL安装

基于CentOS 7 的MySQL安装 因为一些原因CentOS 7 用MariaDB代替了mysql数据库,所以首先要从网上下载最新的的MySQL包. 然后安装: [[email protected] /]# yum install -y /media/mysql/mysql-community-* 注:红色为MySQL包所在路径. 然后重新启动MySQL服务: [[email protected] /]# systemctl restart msqld.service 重启完后就可以使用了.

单实例MySQL安装

1.建立账号 [[email protected] ~]# groupadd mysql [[email protected] ~]# useradd -s /sbin/nologin -g mysql -Mmysql useradd参数说明: -s/sbin/nologin 表示禁止该用户登录 -gmysql 指定属于mysql组 -M表示不创建用户家目录 2.配置安装环境 创建目录并授权: [[email protected] ~]# mkdir /home/tools [[email pr

Ubuntu系统下的Mysql安装与使用

摘要 在本篇博文中,笔者将从基础出发,介绍Mysql在Linux环境下的安装和基本使用命令,仅适用于Mysql初学者,大牛请绕道-- 安装Mysql数据库 这里介绍最最简单的安装方式,至于编译安装,可以下载安装包, ./configure 生成Makefile,然后 make clean,  make , make test,  make install  我想这些命令应该很基本了吧,这里不再敖述. 1. 安装命令 [email protected]:~$ sudo apt-get instal