Title: Hacked SQL HELP
Last modified: August 18, 2016

---

# Hacked SQL HELP

 *  [blacktriangle](https://wordpress.org/support/users/blacktriangle/)
 * (@blacktriangle)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/hacked-sql-help/)
 * Somehow one of my sites was hacked. I’ve re-enstalled WordPress, but my SQL database
   has the following in it:
 * LOCK TABLES `wp_links` WRITE;
    /*!40000 ALTER TABLE `wp_links` DISABLE KEYS */;
   INSERT INTO `wp_links` (`link_id`, `link_url`, `link_name`, `link_image`, `link_target`,`
   link_category`, `link_description`, `link_visible`, `link_owner`, `link_rating`,`
   link_updated`, `link_rel`, `link_notes`, `link_rss`) VALUES (1,'<meta http-equiv
   = \”refresh\” content=\”0;URL= [http://d3cc4l.googlepages.com/hack.htm](http://d3cc4l.googlepages.com/hack.htm)\”
   >’,'<meta http-equiv=\”refresh\” content=\”0;URL=http:// d3cc4l.googlepages.com/
   hack.htm\ “>’,”,”,0,'<meta http-equiv= \”refresh\” content=\”0;URL=http://d3cc4l.
   googlepages.com/hack.htm \”>’,”,0,0,’0000-00-00 00:00:00′,”,”,”); /*!40000 ALTER
   TABLE `wp_links` ENABLE KEYS */; UNLOCK TABLES;
 * Unfortunately, I don’t have a copy without this refresh in.
 * What should I do to the above to remove the problem?

Viewing 1 replies (of 1 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/hacked-sql-help/#post-620741)
 * youre pasting that out of your backup file? If so, just delete the offending 
   lines before you import it, OR better still import it like that, and delete the
   crap out of your table after the import – the second way insures you dont accidentally
   delete something you want or need.
 * You need to do more than that btw, change your passwords (all of them), check
   your file permissions (yes I know you said this was a fresh install, no matter)
 * files : 644
    directories: 755
 * and let your host know.

Viewing 1 replies (of 1 total)

The topic ‘Hacked SQL HELP’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/hacked-sql-help/#post-620741)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
