070607 17:04:59  mysqld started
070607 17:04:59  InnoDB: Started; log sequence number 0 43665
070607 17:04:59 [ERROR] I/O error reading the header from the binary log, errno=-1, io cache code=0
070607 17:04:59 [ERROR] I/O error reading the header from the binary log
070607 17:04:59 [ERROR] Can't init tc log
070607 17:04:59 [ERROR] Aborting

070607 17:04:59  InnoDB: Starting shutdown...
070607 17:05:01  InnoDB: Shutdown completed; log sequence number 0 43665
070607 17:05:01 [Note] /usr/local/mysql/libexec/mysqld: Shutdown 이 완료됨!

이럴경우
mysql-bin.xxxx 와 mysql-bin.index 파일 리스트가 일치 하지 않을 경우 발생

대처법 : mysql-bin.index 파일을 삭제후

./bin/mysqld_safe & 로 스타트..

################################################################################

또한 가끔 mysql 소유권이 root로 된 경우 ./bin/mysqld_safe & 로만으로는 스타트 되지 않는 경우가 있다.
이경우 ./bin/mysqld_safe --user=root &   로 root권한으로 실행하면 됨..

################################################################################
일반적으로 mysql이 스타트 되지 않으면 주로 경로 (/tmp/mysql.sock) 문제인데 이경우는 경로를 바꾸어 주어야 한다.
즉 apm 세팅할때의 경로와 실제 cnt 파일과 일치 하지 않는 경우가 대부분이다.
Posted by [czar]
,