2013-08-26 3 views
4

저는 몇 주 동안 MAMP 설치 작업을 해왔고, 오늘 시작했을 때 시작되지 않았습니다. 어떤 MySQL의 프로세스가 너무 실행되지 않았다 내가 서버를 시작할 때 다음을 표시 오류 로그를 확인 : MAMP Mysql 오류 - 로그를 열 수 없습니다.

130826 14:19:55 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql 
130826 14:19:55 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2 
130826 14:19:55 [Warning] One can only use the --user switch if running as root 

130826 14:19:55 [Note] Plugin 'FEDERATED' is disabled. 
130826 14:19:55 InnoDB: The InnoDB memory heap is disabled 
130826 14:19:55 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
130826 14:19:55 InnoDB: Compressed tables use zlib 1.2.3 
130826 14:19:55 InnoDB: Initializing buffer pool, size = 128.0M 
130826 14:19:55 InnoDB: Completed initialization of buffer pool 
130826 14:19:55 InnoDB: highest supported file format is Barracuda. 
130826 14:19:55 InnoDB: Waiting for the background threads to start 
130826 14:19:56 InnoDB: 1.1.8 started; log sequence number 4057202289 
/Applications/MAMP/Library/bin/mysqld: File './mysql-bin.000025' not found (Errcode: 2) 
130826 14:19:56 [ERROR] Failed to open log (file './mysql-bin.000025', errno 2) 
130826 14:19:56 [ERROR] Could not open log file 
130826 14:19:56 [ERROR] Can't init tc log 
130826 14:19:56 [ERROR] Aborting 

130826 14:19:56 InnoDB: Starting shutdown... 
130826 14:19:57 InnoDB: Shutdown completed; log sequence number 4057202289 
130826 14:19:57 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete 

130826 14:19:57 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended 

그래서 특정 로그 파일을 찾을 수없는 것이 분명하지만, 그 일이 왜 모르겠어요

, 또는 그것을 고치는 방법.

답변

9

바이너리 로그 파일 중 하나 인 Applications/MAMP/db/mysql/mysql-bin.000025이 손상되었거나 삭제 된 것 같습니다. 더 이상 존재하지 않았으며 수동으로 삭제하지 않았습니다.

은 몇 가지 조사를하고 this 게시물을 찾은 후, 나는 /Applications/MAMP/db/mysql로 이동하고 수동 mysql-bin.index가 더 이상 누락 된 로그 파일을 포함하지 않으려면 편집하여이 문제를 해결할 수 있었다.

나는 MAMP 서버를 정상적으로 종료하고 결코 이진 로그 파일을 건드리지 않았으므로이 문제를 야기한 것은 여전히 ​​다소 혼란 스럽다 ...

관련 문제