글 수 24
InnoDB: Error: data file /mysql/var/ibdata1 is of a different size
InnoDB: 73344 pages (rounded down to MB)
InnoDB: than specified in the .cnf file 64000 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!
090713 15:08:05 [Note] /mysql/libexec/mysqld: ready for connections.
Version: '5.0.45' socket: '/tmp/mysql.sock' port: 3306 Source distribution
my.cnf 설정 내역
innodb_data_file_path = /mysql/var/ibdata1:1000M;/mysql/var/ibdata2:1000M:autoextend
실제 pages (73344) 와, my.cnf에 설정된 pages (64000) 가 달라서 에러가 나는것입니다.
해결책은 젤 아래 url 보시면 상세히 설명되어 있습니다.
계산을 해보면 1page 당 Memory는 16kbytes 입니다.
즉, 위 에러 로그상의 실제 page 는 73344 pages 이므로
64000 pages = 1000Mbytes
73344 pages = 1146Mbytes
위 메모리 양에 따라 my.cnf 내용을 아래처럼 수정하고 mysql restart 하시면 됩니다.
innodb_data_file_path = /mysql/var/ibdata1:1146M;/mysql/var/ibdata2:1146M:autoextend
해결책

좋은 정보 감사합니다.