Slug not being updated using wp_insert_post

wp_insert_post( array(
        'ID' => $post_id,
        'post_name' => 'my-new-slug',
    ), true);

Apparently wp_insert_post needs the true argument..

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