Hello,
This worked for me. My site was migrated from old server , and DB host was set to old server host name , so the database was getting connected perfectly on old server and there fore showing old mysql version than available on current host.
the moral of the story is : always try to set localhost as dbhost instead of any host name.
Thanks Rev. Voodoo