mysql 5 점대 바이너리 설치 err 파일 에러 메시지 해결 2가지 용-ILE/설치팁2008. 5. 15. 19:07
http://suite.tistory.com/ fs 2006 9
바이너리로 설치 에러시 처리 방법
1 .아래 에러 경우 초기 디비를 생성
060826 15:00:38 mysqld started
060826 15:00:38 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when t
his MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=kmsdrm01-bin' to avoid this problem.
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
mysql 홈디렉토리에서 scripts 포함하여 실행
ex)./scripts/mysql_install_db
2. 아래 에러 경우 mysql 설치된 디렉토리 소유권을 safe_mysqld를 실행하는 계정의 소유로 변경한다.
060901 15:28:21 mysqld started
060901 15:28:22 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when t
his MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=kmsdrm01-bin' to avoid this problem.
^G/usr/local/mysql/bin/mysqld: File './kmsdrm01-bin.index' not found (Errcode: 13)
060901 15:28:22 [ERROR] Aborting
060901 15:28:22 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
60901 15:29:03 mysqld started
^G/usr/local/mysql/bin/mysqld: File './kmsdrm01-bin.index' not found (Errcode: 13)
060901 15:29:03 [ERROR] Aborting
예를 루트로 /usr/local/mysql 설치 하게되면 소유권은 루트가 되지만 기본 safe_mysqld 실행시에 user=mysql 계정으로 실행되어
mysql 계정이 접근을 하지 못한다.
이를 해결할려면 /usr/local/mysql 디렉토리 소유권(chown)을 mysql에게 주던지 safe_mysqld 를 열어 user=root로 수정한다.