Just had a thought, is a .sql file a backup file rather than the database itself?
I have the same error which is topping me getting into my WordPress Admin panel. Restored the website last night, updated everything except YOAST and everyhing was fine. But having done a manual update of YOAST Premium to 3.0.6 via FTP the error is back.
So I have tried replacing the updated folder public_html/wp-content/plugins/wordpress-seo-premium with the previous version (that worked) and I am still getting the error. How can this be?