Fist of all I have the files but the old system is gone.
I took the folders in
/var/lib/mysql/ and gave then the permissions the mysql folder that was in there had. user mysql group root only accessible my user.
Now when I want to access my localhost sites I get a mysql database error. But I think everything is as it was before. What do I need to do to make this work?
Cannot find or open table blabla/wp_options from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support. See http://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html how you can resolve the problem.
the logfile shows me a hell of a lot errors like this. Should I delete this .frm files now?