2013-08-30 3 views
1

이전에는 잘 돌아가고 있었고 mysql을 다시 시작할 때 /etc/init.d/mysql을 다시 시작했을 때 전자 메일 서버를 구성하고있었습니다. 나는 그곳에서 아무 것도 만지지 않았지만 그 전에 실패한 apt-get 업데이트를 기억할 수 있다고 확신합니다.우분투 11.04에 MySQL이 설치되지 않습니다.

이제 내 문제는 갑자기 멈추고 시작되지도 않을 때 시작됩니다. Google에서 검색 한 결과 모든 것을 삭제하고 새 설치를 수행하기까지했습니다. 그러나 여전히 그것은 mysql을 제대로 설치하지 못하게 할 것이다.

I의 (a 제거 --purge 수행 한 후) 시도했다 :

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

하고 루트 passsword 나를 메시지를 표시하지만, 나에게 다음과 같은 오류 반환 :

Unable to set password for the MySQL "root" user              

    An error occurred while setting the password for the MySQL administrative user. This may have   
    happened because the account already has a password, or because of a communication problem with the 
    MySQL server.                       

    You should check the account's password after the package installation.        

    Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for more information. 

와 I를 다음 로그도 있습니다 :

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) 

어떤 도움이 필요합니까? 미리 감사드립니다.

답변

2

이 질문은 제거로 해결 한 동일한 문제가 있었지만 이전에 그는 question 인 암호를 설정하려고 시도했으며 그 다음 암호를 설정하려고 시도했을 때 chat에 해결하려고 시도했을 것입니다. 그냥 시도하십시오

업데이트 : 터미널에 다음 명령을 입력하여 mysql을 완전히 제거하십시오. 설치 official ubuntu documentation에 따라 다음 명령

sudo rm -rf /var/lib/mysql 

을 입력하여 존재하는 경우

sudo apt-get remove --purge mysql-server mysql-client mysql-common 
sudo apt-get autoremove 
sudo apt-get autoclean 

은 또한 당신은/var/lib 디렉토리/mysql을 폴더를 제거해야합니다. 설치 중에 mysql 암호를 설정하는 것을 잊지 마십시오.

question도 설치 과정에서 발생한 오류와 유사합니다.

+0

설치, 제거 설치 제거 후 다시 설치하십시오. 우분투 버전을 업데이트하고 여전히 성공을 거두지 못했습니다. – ajib

+0

비밀번호 재설정을 시도하셨습니까? –

+0

비밀번호로 무슨 뜻인지 알지 못합니다. mysql의 루트 계정을 언급하고 있습니까? 그렇다면 대답은 '아니오'입니다. 이 에러는 실제로 시스템에 mysql-server를 재설치 할 때 발생합니다.나에게이 오류가 있기 때문에 설치를 계속할 수 없다. – ajib

2

이 문제가 발생했습니다. 어쩌면 aptitude에는 패키지에 대한 일부 구성이 있습니다. 이 간섭 문제가 있다고 생각합니다. 이 방법은 제거 명령입니다. 실행 해보십시오.

  1. 체크 설치 MySQL의 패키지

    dpkg --get-selections|grep mysql

  2. 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. 내가 솜했다

    apt-get install mysql-server

관련 문제