I have a table srSignals, in a database called signals that looks like so:
animal inserttime id
dog 1970-00-00 00:00:00 3042
cat 1970-00-00 00:00:00 3041
monkey 1970-00-00 00:00:00 3040
hamster 1970-00-00 00:00:00 6
All of my inserttime values got reset to 1970 on accident. Luckily I have a backup of the database signals with the correct inserttime values (and corresponding id values). The backup file is called signals.sql.gz (with signals.sql inside the gz compression, obviously).
My question is this: using phpMyAdmin, how can I update the column inserttime where the id of the existing table = the id of the backup file. Note that I do NOT want to completely restore the table as other stuff has been added to the database in the interim.
I’m not sure the best way to get about this – restore functionality of phpMyAdmin? Some fancy update / load?
Thanks!
Restore the backup to a different database and then do an update: