We recently upgraded mysql database which is running on mysql server version 5.5.8. After the upgrade sometimes we are seeing the simple upgrade staements taking more than 1
I've checked some solutions here and I came up to this link.
Add this line (if it exists edit it):
innodb_flush_log_at_trx_commit = 0
in the /etc/my.cnf
On Pedro Werneck comment:
Setting innodb_flush_log_at_trx_commit naively can be dangerous
It's your choice if you're doing transactional queries to it.