Global It Leader!!



 
 

리눅스 mysql 데몬 실행시 에러 로그파일이 다음과 같을때...

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 7,355회 작성일 11-07-16 23:45

본문

110716 23:35:23  mysqld started
InnoDB: Error: data file /usr/local/mysql/var/ibdata1 is of a different size
InnoDB: 0 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 128000 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
110716 23:35:23 [ERROR] Can't init databases
110716 23:35:23 [ERROR] Aborting

ib_logfile0 파일을 삭제하고 mysql 데몬을 아래와 같이 재시작하면....

#/usr/local/mysql/share/mysql/mysql.server start
Starting MySQL SUCCESS!

만약 아래와 같이 에러 로그가 기록되어 있다면...

080307 20:24:58  mysqld started
InnoDB: Error: data file /usr/local/mysql/data/ibdata1 is of a different size
InnoDB: 640 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 128000 pages!
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
080307 20:24:58 [ERROR] Can't init databases
080307 20:24:58 [ERROR] Aborting

080307 20:24:58 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

1page = 16KB이므로 640페이지*16KB / 1024KB = 10MB

#vi /etc/my.cnf
:
innodb_data_home_dir = /usr/local/mysql/data/
innodb_data_file_path = ibdata1:10M;ibdata2:10M:autoextend
:
위와 같이 설정해 주고 ibdata* 파일을 삭제하고 mysql 데몬을 재시작한다.

댓글목록

등록된 댓글이 없습니다.

전체 105
게시물 검색
윈도우/리눅스 목록
번호 제목 글쓴이 조회 날짜
25 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6406 08-25
24 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7739 08-25
열람중 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7356 07-16
22 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7392 07-13
21 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 32058 07-12
20 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7619 06-28
19 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7934 01-16
18 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8101 01-14
17 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10672 01-14
16 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7988 01-14
15 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7985 01-13
14 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9376 08-28
13 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9315 08-28
12 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9709 08-28
11 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9000 07-14
10 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10344 07-06
9 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7946 04-20
8 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7926 04-07
7 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7965 04-07
6 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10695 04-07