How can I copy an ACF field to AIOSEO field? [closed]

2 things I noticed: get_field() isn’t specifying a post to get the field from, which is necessary outside the loop:

$add_description = get_field( 'body', $post->ID );`

And to set a post meta value you should use update_post_meta(), not wp_update_post():

update_post_meta( $post->ID, '_aioseop_description', $add_description );

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