I want to take the dump only of the latest rows. But When i pass the --where option its not dumping the rows. but when i execute select query with the same where clause it returns the rows. here is my select query:
SELECT * FROM abc.`xyz` WHERE UPDATED_AT >="2015-11-11 10:03:37";
here is my mysqldump command:
mysqldump --no-create-info --replace -h source_server --user=backup1 --password='passcode' abc xyz --where='UPDATED_AT >="2015-11-11 10:03:37"' > "backup.sql"
What is the problem in the above mysqldump command why its not dumping the records?
dump file portion is as under:
--
-- Dumping data for table `xyz`
--
-- WHERE: UPDATED_AT >='2015-11-11 10:03:37'
LOCK TABLES `xyz` WRITE;
/*!40000 ALTER TABLE `xyz` DISABLE KEYS */;
/*!40000 ALTER TABLE `xyz` ENABLE KEYS */;
UNLOCK TABLES;