What is the way to add additional fields to attachments in 3.5+?

attachment_fields_to_edit is still there in 3.6. It is in /wp-admin/includes/media.php in a couple of places. Perhaps usage has changed, or something has changed that has broken your code but without that code it is impossible to tell.

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