Shameless Plug - but if you can get to WP-Admin and Plugins, WP-DBManager can repair it http://wordpress.org/plugins/wp-dbmanager/