MYSQL Help - Publish Woocommerce products using phpmyadmin

SpiderWeb

Active member
Trusted Uploader
Sep 23, 2020
183
166
43
I have around 12K products in my woocommerce store. When i use BULK EDIT option in wordpress to PUBLISH my products (20 at time), my shared hosting CPU shoots up to 60-80%.

I want to update all my 12K products from DRAFT to PUBLISH using phpmyadmin (backend using SQL).

I tried below update but it did not generate the URL (permalink) and i got URL of all 12K products as https://example.com/product

update wp_posts set post_status='publish' where post_type='product' and post_status='draft';

Can someone please guide me the correct way to PUBLISH woocommerce products using SQL so all product links, category links, yoast seo inserts will be properly updated.
 

playerone

Active member
May 13, 2020
27
108
33
For the permalinks ... did you check in "Setting--> Pemalinks" to make sure it's enabled ?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu