F
F
ferrum382020-07-21 17:38:51
SQL
ferrum38, 2020-07-21 17:38:51

How to enable reviews on all WooCommerce Wordpress products?

I found on the Internet that you can make a SQL query in phpmyadmin

UPDATE `wp_posts` SET comment_status = 'open'
WHERE `post_type` = 'product'

But I get an error
vtFVydbelig.jpg

. I tried to write USE 'database name' at the beginning and got a new error.

USE 'database name'
UPDATE `wp_posts` SET comment_status = 'open'
WHERE `post_type` = 'product'
MySQL Response: Documentation

#1064 - You have a query error. Check the documentation for your version of MySQL for the correct syntax around ''database name''
UPDATE `wp_posts` SET comment_status = 'open'
WHERE `post_t' on line 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman, 2020-07-21
@ferrum38

semicolon missing between USE and UPDATE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question