Marie, the database restoring is an extreme option. Basically, you don't need to do this. You just need to deactivate the plugin that is causing the error. If you can't access Admin Area you may do it via the database.
For example, my "Photo" plugin is causing the error and I can't login to admin panel anymore.
I go to my database>>find "ow_base_plugin" table>>within this table find "Photo" plugin>>click "edit" >>set " isActive" to 0 .
0=deactivated plugin
1=activated plugin