Is there a way to set default custom fields when creating a new post?

you can do that better with install advanced custom fileds plugins or any plugin and specify the custom field to all posts , you can install this plugin

or by your simple codes in wordpress and choose one

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