There is some bug in mysql which causes error when moving database from 5.0 to 5.5, or not upgraded properly To fix this you need to run
mysql_upgrade --force -uroot -p
(then enter your mysql root password) . You have to use the--force option or else it won’t fix the problem. I hope this will save someone's time.