Resize post thumbnail produces horrible image quality..Any help?

Resize post thumbnail produces horrible image quality..Any help?

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