programing

mysql - aria 제어 파일을 잠글 수 없습니다.

javaba 2022. 11. 25. 21:09
반응형

mysql - aria 제어 파일을 잠글 수 없습니다.

MariaDB가 처음 정상적으로 동작했을 때 문제가 있었습니다.MySQL 데몬을 더 이상 시작할 수 없을 때만 서버를 재시작했습니다.이전 USB 스틱의 파일 경로(/media/broad)를 사용하고 있는 것 같습니다.대신 새로운 HDD(/media/seagate)로 전환했습니다.다음은 /var/log/mysql/error.log 에 표시되는 오류입니다.

160728  9:32:32 [ERROR] mysqld: Can't lock aria control file '/media/brood/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
160728  9:33:03 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/media/brood/mysql/aria_log_control'
160728  9:33:03 [ERROR] Plugin 'Aria' init function returned error.
160728  9:33:03 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
160728  9:33:03 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160728  9:33:03 [Note] InnoDB: The InnoDB memory heap is disabled
160728  9:33:03 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
160728  9:33:03 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
160728  9:33:03 [Note] InnoDB: Compressed tables use zlib 1.2.8
160728  9:33:03 [Note] InnoDB: Using Linux native AIO
160728  9:33:03 [Note] InnoDB: Not using CPU crc32 instructions
160728  9:33:03 [Note] InnoDB: Initializing buffer pool, size = 128.0M
160728  9:33:03 [Note] InnoDB: Completed initialization of buffer pool
160728  9:33:03 [ERROR] InnoDB: Unable to lock ./ib_logfile0, error: 11
160728  9:33:03 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
160728  9:33:03 [ERROR] InnoDB: Unable to open './ib_logfile0'
160728  9:33:03 [ERROR] Plugin 'InnoDB' init function returned error.
160728  9:33:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160728  9:33:03 [Note] Plugin 'FEEDBACK' is disabled.
mysqld: Too many arguments (first extra is 'stop').
160728  9:33:03 [ERROR] Aborting

160728  9:33:03 [Note] mysqld: Shutdown complete

권한 문제일 수도 있고 파일이 아직 잠겨 있을 수도 있습니다(어떻게 작동하는지 모르겠습니다). 지난번 라즈베리 파이가 재부팅되었을 때 누군가가 실수로 파이의 전원 플러그를 뽑았기 때문입니다.

왜 로그가 오래된 mysql 데이터 폴더에 경로를 포함했는지 아직도 의문입니다.(이전의 USB 스틱도 아니고, 더 자세히 말하자면, 그 전에 사용한 USB 스틱입니다!)하지만 문제는 해결됐어요!그 대답은 실제로 가 생각했던 것보다 훨씬 간단했다. 알고 보니 동생이 mariadb-server-10.0(이상한!)이 제거된 것을 발견하고 (오래된 게임을 하기 위한 에뮬레이터)를 제거했다고 한다.그래서 간단하게sudo apt-get install mariadb-server-10.0그거 알아?내 문제는 해결됐어! :d

언급URL : https://stackoverflow.com/questions/39085279/mysql-cant-lock-aria-control-file

반응형