Hook after creating a post and retrieve infos from this post immediatly

add_action('save_post_reservations', 'new_reserv');
function new_reserv($post_id){
    // $post_id - just created post id
}

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