Exacly!
I performed the upgrade, and sth did not work so I re run this and got this error.
To resolve this I had to
mysql> DROP DATABASE databsasename;
mysql> CREATE DATABASE databasename;
mysql> use databasename;
mysql> databsasename < bacupfile.sql;
I hope this will save people some time