Hook (or other way) to find out when another plugin is activated / installed

I believe you are looking for activated_plugin and deactivated_plugin, see the wordpress documentation:

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