transition_post_status hook, works – but not if the post is new

transition_post_status hook, works – but not if the post is new

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