How to handle broken links created by permalink/slug changes?

You could use this search and replace tool:
search and replace by interconnectit

Apart from that you could put some redirects in your htaccess, but really the search and replace works great.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)