How to call WooCommerce update cart function programatically

The default form handler is a static method which you can call with

WC_Form_Handler::update_cart_action();

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