Upgrade wordpress core programmatically with PHP [closed]

A hint to the functions that I need to use.

I’m not sure why you’ll want to mimic WP’s default behavior, but most of the update logic lies on wp-admin/update-core.php

Check for do_core_upgrade().

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