Add image URL automatically to custom field?

There’s no need to store the URL in a custom field, the thumbnail id is already stored in a custom field under the key _thumbnail_id. You can fetch the ID via get_post_meta and use wp_get_attachment_image_src to get the URL.

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