MySQL Daemon failed to start. ib_logfile is of different size -
help me, please.
server : aws ec2
problem :
#sudo service mysqld start mysql daemon failed start. starting mysqld: [failed]
vi /var/log/mysqld.log :
151015 05:46:26 mysqld_safe starting mysqld daemon databases /var/lib/mysql 151015 5:46:26 [note] /usr/libexec/mysql55/mysqld (mysqld 5.5.45) starting process 14873 ... 151015 5:46:26 [warning] option 'innodb-buffer-pool-size': signed value 1048576 adjusted 5242880 151015 5:46:26 [note] plugin 'federated' d151015 05:46:26 mysqld_safe mysqld pid file /var/run/mysqld/mysqld.pid ended 151015 05:46:42 mysqld_safe starting mysqld daemon databases /var/lib/mysql 151015 5:46:42 [note] /usr/libexec/mysql55/mysqld (mysqld 5.5.45) starting process 15133 ... 151015 5:46:42 [note] plugin 'federated' disabled. 151015 5:46:42 innodb: innodb memory heap disabled 151015 5:46:42 innodb: mutexes , rw_locks use gcc atomic builtins 151015 5:46:42 innodb: compressed tables use zlib 1.2.8 151015 5:46:42 innodb: using linux native aio 151015 5:46:42 innodb: initializing buffer pool, size = 128.0m 151015 5:46:42 innodb: completed initialization of buffer pool innodb: error: log file ./ib_logfile0 of different size 0 0 bytes innodb: specified in .cnf file 0 5242880 bytes! 151015 5:46:42 [error] plugin 'innodb' init function returned error. 151015 5:46:42 [error] plugin 'innodb' registration storage engine failed. 151015 5:46:42 [error] unknown/unsupported storage engine: innodb 151015 5:46:42 [error] aborting 151015 5:46:42 [note] /usr/libexec/mysql55/mysqld: shutdown complete 151015 05:46:42 mysqld_safe mysqld pid file /var/run/mysqld/mysqld.pid ended
thank you!
here's error:
innodb: error: log file ./ib_logfile0 of different size 0 0 bytes innodb: specified in .cnf file 0 5242880 bytes!
either adjust value innodb-log-file-size
in my.cnf
file size of log files (512m think), or delete files ib_logfile0
, ib_logfile1
in mysql folder (most /var/lib/mysql
) , let mysql recreate them automatically.
Comments
Post a Comment