After you are certain all the parameters that are required in the newconfig have been met, make sure you repair and optimize in phpmyadmin the db and the dbuser has all permissions for the db.

Run the upgrade again, if the same error occurs manually create the empty table in the db.

Is this a licensed script or some nulled install?