How to edit a published post?

You modified a copy of a row from the wp_posts table.

You need to send the modified version back to the database:

wp_update_post( $post_info );

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