Unable to restore Worpress database.
-
I am moving Host provider and cannot import my backup of my old site properly. It always fails with an error
ERROR 1293 (HY000) at line 15169: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clauseLooking at the SQL backup it seems that this is being caused by the creation of the table wp_ts_tracks as this is the only time current_timestamp appears twice in the SQL for the same table. It only appears one other time and that table is imported successfully. The wp_ts_tracks table does not get imported, nor do any tables after this. Could you suggest what’s going wrong please?
CREATE TABLE IF NOT EXISTS
wp_ts_tracks
(
id
int(11) NOT NULL AUTO_INCREMENT,
user_id
int(11) NOT NULL,
name
varchar(255) NOT NULL,
update
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
created
timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
source
varchar(255) NOT NULL,
comment
varchar(255) NOT NULL,
distance
int(11) NOT NULL,
PRIMARY KEY (id
),
KEYuser_id
(user_id
),
KEYuser_id_2
(user_id
),
KEYuser_id_3
(user_id
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=59 ;—
— Dumping data for table `wp_ts_tracks
- The topic ‘Unable to restore Worpress database.’ is closed to new replies.