Thanks ozzy. I've already removed the only plugin I had and am going to be upgrading to the latest version of vB but wanted to clear the database of any infection first.
I tried your first command and got an error saying that DatabaseName.plugin didn't exist. I tried swapping "plugin" for the table name but that didn't work either. I got the same problem with the second command i.e. an error message saying that the table template doesn't exist.
Quote:
Table 'databasename.template' doesn't exist
I can download that table, edit it in Notepad++ and then upload it back to the database. Would that work?
--------------- Added [DATE]1379422949[/DATE] at [TIME]1379422949[/TIME] ---------------
Nope, that didn't work. I backed up the db, edited the datastore.MYD in Notepad++ and uploaded it and I was getting all kinds of SQL errors. I had to revert to a saved copy of the database.