Reset all stock status in woocommerce

You can add the following sql command in your database using PHP my admin or anyother DB editor

Update wp_postmeta Set meta_value="instock" Where meta_value="outofstock" And meta_key = '_stock_status'

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