Global It Leader!!



 
 

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

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 7,336회 작성일 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 데몬을 재시작한다.

댓글목록

등록된 댓글이 없습니다.

전체 167
게시물 검색
윈도우/리눅스 목록
번호 제목 글쓴이 조회 날짜
67 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7105 10-14
66 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8602 10-14
65 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6948 10-13
64 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6910 10-13
63 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6324 10-13
62 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8230 10-05
61 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7886 10-05
60 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6160 09-29
59 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7279 09-20
58 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6962 09-07
57 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7277 08-31
56 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8451 08-26
55 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6390 08-25
54 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7726 08-25
열람중 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7337 07-16
52 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7375 07-13
51 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 32031 07-12
50 리눅스 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7596 06-28
49 윈도우즈 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7814 06-09
48 글꼴 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6603 05-23