How to keep edited plugins updated?

You should definitely use Version control systems like Git, SVN, Mercurial etc. It will cover all your needs and more.

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