mysql설치시 mysql_install_db 에서 에러가 발생하네요.

안녕하세요. ^^

몇일째 이 문제때문에 고생이네요..
구글링을 해도 정확한 답은 모르겠고 답답해용...흑.. ..ㅜㅜ

VMware에 공부용으로 설치한 리눅스에서는 에러없이 mysql이 잘 설치 되었는데..
문제는 가상서버호스팅에서 mysql설치시 계속 에러네요. ㅠㅠ 

기존 RPM으로 설치되 있는 mysql을 yum으로 삭제후
mysql을 소스로 받아 책에 나온대로 설치를 하였습니다.
(책 - CentOS리눅스 구축 관리 실무)

./configure ..... make, make install 도 모두 정상적으로 실행 되었습니다.

헌데

mysql_install_db 를 실행하면 에러가 뜨네요.

구글링을 해서 이거해봐라 저거해봐라 하는 짐작 되는거 이것저것 해보았는데
제 짐작이 다 틀렸는지 계속 에러입니다.
한 2~30번을 지웠다, 컴파일했다, 지웠다 컴파일했다 반복이네요. 에공...

고수님들께서 에러 메세지 좀 분석해주시기 부탁드립니다.

[root@localhost bin]# ./mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1062  Duplicate entry 'localhost-' for key 1
081117  0:42:37 [ERROR] Aborting

081117  0:42:37 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /usr/local/mysql/var for more information.
You can try to start the mysqld daemon with:
/usr/local/mysql/libexec/mysqld --skip-grant &
and use the command line tool
/usr/local/mysql/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/local/mysql/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /usr/local/mysql/var that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script!
You have new mail in /var/spool/mail/root


부탁드립니다. ^^
|

댓글 1개

http://howflow.com/tricks/solution_for_error_1062_duplicate_entry_localhost_for_key_1

해석하면 다음과 같습니다:
mysql_install_db(혹은 젠투에서 emerge—config =dev-db/mysql-5.0.54’)를 실행할 때 다음과 같은 에러 메시지를 볼 수 있습니다:

Installing MySQL system tables...
ERROR: 1062 Duplicate entry 'localhost-' for key 1
080616 13:44:22 [ERROR] Aborting

mysql_install_db 스크립트는 GRANT 테이블을 생성하면서 이 테이블에 몇몇 사용자들을 자동으로 등록합니다. 특히 'root'와 'localhost' 그리고 'root@<hostname>' 그런데 컴퓨터의 hostname이 실수로 'hostname'이나 'localhost'로 설정된 경우 중복 입력에러가 발생합니다.

어떻게 해결합니까?

컴퓨터의 hostname을 'localhost'가 아닌 다른 이름으로 바꾸어주십시오. 일반적으로 (일시적으로) hostname명령을 통해 행해집니다:

hostname 원하는-호스트네임

영구적으로 hostname을 설정하는 방법은 OS의 메뉴얼을 참조하십시오.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 826
17년 전 조회 731
17년 전 조회 859
17년 전 조회 1,979
17년 전 조회 768
17년 전 조회 781
17년 전 조회 1,758
17년 전 조회 1,387
17년 전 조회 1,775
17년 전 조회 3,881
17년 전 조회 1,544
17년 전 조회 987
17년 전 조회 1,519
17년 전 조회 969
17년 전 조회 3,527
17년 전 조회 1,528
17년 전 조회 882
17년 전 조회 1,703
17년 전 조회 795
17년 전 조회 754