Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12493

Reply To: Restore a backed up database, import a database

$
0
0

Yes.  This is the way that I would do that manually by editing the .sql backup file directly.

1. Download and install this application on your computer:  Notepad++:  http://notepad-plus-plus.org/download/v6.7.4.html
2. Extract/unzip your DB backup zip file on your computer.
3. Open the .sql extracted/unzipped DB backup file with Notepad++
4. Edit the .sql file and remove/delete the section of code in the .sql file for the spider db table.

Example db table deletion/removal (using a random example db table name): Delete the entire DB backup table code starting from DROP TABLE IF EXISTS to the end of that specific DB table’s section of code ONLY.

DROP TABLE IF EXISTS wp_TABLE_STATISTICS;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = 'utf8' */;
CREATE TABLE wp_TABLE_STATISTICS (
name enum('hits','hits_day','hits_day_nobots','hits_month','hits_month_nobots','hits_nobots','hits_week','hits_week_nobots','hits_year','hits_year_nobots','post_count','raw_count','user_count','visits','visits_day','visits_day_nobots','visits_month','visits_month_nobots','visits_nobots','visits_week','visits_week_nobots','visits_year','visits_year_nobots') NOT NULL,
type tinyint(3) unsigned NOT NULL default '0',
val1 int(11) unsigned NOT NULL default '0',
val2 int(11) unsigned NOT NULL default '0',
val3 int(11) unsigned NOT NULL default '0',
KEY type (type,val1,val2),
KEY name (name,type,val1,val2,val3`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table wp_TABLE_STATISTICS
--

/*!40000 ALTER TABLE wp_TABLE_STATISTICS DISABLE KEYS */;
INSERT INTO wp_TABLE_STATISTICS ( name, type, val1, val2, val3 )
VALUES ( 'hits', 6, 0, 0, 72345 );
...
...
...
...
INSERT INTO wp_TABLE_STATISTICS ( name, type, val1, val2, val3 )
VALUES ( 'visits_year_nobots', 26, 2010, 0, 14006 );
/*!40000 ALTER TABLE wp_TABLE_STATISTICS ENABLE KEYS */;

5. Save your edits to the .sql db backup file.
6. Do the database import.


Viewing all articles
Browse latest Browse all 12493

Trending Articles