How update price for variable product

I fix it.

I clear transients for variable product before update price:

wc_delete_product_transients($post_id);

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