I tried this one and I didn’t get the “Done!” message. However, the new file is properly placed in the folder on my server. I’m assuming that since I didn’t get this message that somehow the script didn’t run all the way through. I didn’t get any message, just a blank screen within the middle of my dashboard (top and side nav. loaded fine).
Suffice it to say, this didn’t work. My tables still look like this:
# ——————————————————–
# Table: wp_popularpostsdata
# ——————————————————–
#
# Delete any existing table wp_popularpostsdata
#
DROP TABLE IF EXISTS wp_popularpostsdata
;
#
# Table structure of table wp_popularpostsdata
#
CREATE TABLE wp_popularpostsdata
(
postid
int(10) NOT NULL,
day
datetime NOT NULL default ‘0000-00-00 00:00:00’,
last_viewed
datetime NOT NULL default ‘0000-00-00 00:00:00’,
pageviews
int(10) default ‘1’,
UNIQUE KEY id
(postid
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
#
# Data contents of table wp_popularpostsdata
#
INSERT INTO wp_popularpostsdata
VALUES (1346, ‘2009-08-18 13:34:34’, ‘2009-08-18 13:34:34’, 1);
INSERT INTO wp_popularpostsdata
VALUES (633, ‘2009-08-22 15:03:47’, ‘2009-08-22 15:05:29’, 3);
INSERT INTO wp_popularpostsdata
VALUES (436, ‘2009-08-22 15:04:53’, ‘2009-08-22 15:04:53’, 2);
#
# End of data contents of table wp_popularpostsdata
# ——————————————————–
# ——————————————————–
# Table: wp_popularpostsdata_backup
# ——————————————————–
#
# Delete any existing table wp_popularpostsdata_backup
#
DROP TABLE IF EXISTS wp_popularpostsdata_backup
;
#
# Table structure of table wp_popularpostsdata_backup
#
CREATE TABLE wp_popularpostsdata_backup
(
postid
int(10) NOT NULL,
day
datetime NOT NULL default ‘0000-00-00 00:00:00’,
pageviews
int(10) default ‘1’,
UNIQUE KEY id
(postid
,day
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
#
# Data contents of table wp_popularpostsdata_backup
#
INSERT INTO wp_popularpostsdata_backup
VALUES (131, ‘2009-01-18 00:00:00’, 1);
INSERT INTO wp_popularpostsdata_backup
VALUES (127, ‘2009-01-18 00:00:00’, 2);
INSERT INTO wp_popularpostsdata_backup
VALUES (83, ‘2009-01-18 00:00:00’, 1);
INSERT INTO wp_popularpostsdata_backup
VALUES (25, ‘2009-01-18 00:00:00’, 1);
<followed by all the other data>