Database wide search and replace script

Just something I thought that I would post as I needed a quick solution to do a search and replace of an entire Mysql Database. It’s actually dumping the DB, searching and replacing the dump file and then re-importing it. But it does the trick