patrick After uninstalling WooCommerce plugin I removed the table created by it. Now I installed WooCommerce again but it is not recreating WooCommerce pages automatically.
Jacob You can recreate the Woocommerce pages by following these steps. Go to the System Status tab on Woocommerce. Next click on the Tools tab at the top of the page. Now navigate the Install pages link and click on that.
James You can recreate the Woocommerce pages by adding the &install_woocommerce_pages=true to the end of the settings link like https://yoursite.com/wp-admin/admin.php?page=woocommerce_settings&install_woocommerce_pages=true