MySQL: Failed Registration of InnoDB as a Storage Engine
Error:-[ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
[ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting
Verify your my.cnf file:-
[root@arjun mysql]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=root
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[root@arjun mysql]#
Solution :-
[root@arjun mysql]# ls
arjun.bangalore.bedford.local.err ibdata1 ib_logfile0 ib_logfile1 kbace mysql RPM_UPGRADE_HISTORY RPM_UPGRADE_MARKER-LAST test
[root@arjun mysql]# mv ibdata1 ibdata1_old
[root@arjun mysql]# mv ib_logfile0 ib_logfile0_old
[root@arjun mysql]# mv ib_logfile1 ib_logfile1_old
[root@arjun mysql]# pwd
/var/lib/mysql
[root@arjun mysql]# service mysql start
Starting MySQL... [ OK ]
[root@arjun mysql]# ls
arjun.bangalore.bedford.local.err auto.cnf ibdata1_old ib_logfile0_old ib_logfile1_old mysql RPM_UPGRADE_HISTORY test
arjun.bangalore.bedford.local.pid ibdata1 ib_logfile0 ib_logfile1 kbace mysql.sock RPM_UPGRADE_MARKER-LAST
[root@arjun mysql]#
No comments:
Post a Comment