Why wordpress doesn’t generate thumbnails?

I found the problem. For some reason it was a JPEG file’s issue. I recreated all the JPEGs and now it generates the thumbnails…

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