Increase innodb_log_file_size: the proper way
If you modify the innodb_log_file_size, MySQL will fail to restart and InnoDB will complain about the size of the changed log file.
The proper way to increase the innodb_log_file_size:
- shutdown mysql server
- make backup of data and log files
- remove InnoDB log files
- set new value for innodb_log_file_size in my.cnf
- start mysqld
- check error logs to ensure everything went fine.




1 Comments:
I am facing some issue in setting innodb_log_file_size parameter in MySQL server even after following the steps mentioned above.
When i tried increasing the innodb_log_file_size to 128M (1/4th of innodb_buffer_pool_size), it throws errors like incorrect imformation in file dbname.tablenane.frm files.
The current values of innodb variables in my.cnf are shown below:
innodb_log_buffer_size = 8M
innodb_log_file_size = 5M
innodb_buffer_pool_size = 512M
I came to know from some forums that innodb_log_buffer_size should never be greater than innodb_log_file_size which is currently true in case.
Can you please help me out on this?
Should i reset the value of innodb_log_buffer_size to its default 1MB and then change the innodb_log_file_size?
Please let us know your thoughts.
Thanks.
Post a Comment
<< Home