How to remove a specific script from bulk wordpress posts and images description?

For sure not only your Posts include Code. There will be also hacked php files. Cleaning the posts wont help until the secuity hole is fixed.
After closing the secuity hole you could use Better Search an Replace for Replacing the Code.

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