MySQL Replace - oops!
Posted: Wed Jun 27, 2012 2:54 am
I think I did something stupid.
I ran:
mysql> update tbl_service set config_name = replace (service_description,'Abcd','Efgh');
and it affected 100+ rows... although I had only one service with a service_description matching 'Abcd'.
It seems like it duplicated a lot of services in the DB (I see many 'Sync Missed' on Nagios)
I still haven't applied configuration.
Can I roll back somehow?
Thanks.
I ran:
mysql> update tbl_service set config_name = replace (service_description,'Abcd','Efgh');
and it affected 100+ rows... although I had only one service with a service_description matching 'Abcd'.
It seems like it duplicated a lot of services in the DB (I see many 'Sync Missed' on Nagios)
I still haven't applied configuration.
Can I roll back somehow?
Thanks.