Can upload through FTP but not through WP uploader

Not necessarily. It might be only a problem with the file permissions. See https://codex.wordpress.org/Changing_File_Permissions for more information.

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