How do you programatically add a booking item to the cart?

This is the correct method

    WC()->cart->add_to_cart($id);

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